Browse Source

Disable source map generation in production mode

Alessandro Pignotti 9 tháng trước cách đây
mục cha
commit
ad7489d869
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      rollup.config.js

+ 1 - 1
rollup.config.js

@@ -19,7 +19,7 @@ const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
 export default {
 	input: 'src/main.js',
 	output: {
-		sourcemap: true,
+		sourcemap: !production,
 		format: 'esm',
 		name: 'app',
 		file: 'build/bundle.js'