Kaynağa Gözat

Disable source map generation in production mode

Alessandro Pignotti 9 ay önce
ebeveyn
işleme
ad7489d869
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 {
 export default {
 	input: 'src/main.js',
 	input: 'src/main.js',
 	output: {
 	output: {
-		sourcemap: true,
+		sourcemap: !production,
 		format: 'esm',
 		format: 'esm',
 		name: 'app',
 		name: 'app',
 		file: 'build/bundle.js'
 		file: 'build/bundle.js'