瀏覽代碼

Disable source map generation in production mode

Alessandro Pignotti 9 月之前
父節點
當前提交
ad7489d869
共有 1 個文件被更改,包括 1 次插入1 次删除
  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'