Skip to content

Commit b6ee5eb

Browse files
authored
chore: disable source maps on production (#219)
1 parent 39cbbfc commit b6ee5eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ async function build({ entries, dest, port, serve = !isProduction }) {
3333
},
3434
patchConsole: true,
3535
mode: isProduction ? 'production' : 'development',
36-
sourceMaps: true,
36+
minify: isProduction,
37+
// sourcemaps are causing warnings in the chrome extension.
38+
sourceMaps: !isProduction,
3739
};
3840

3941
if (serve !== false && port) {

0 commit comments

Comments
 (0)