fix: load sourcemap BUG

This commit is contained in:
草鞋没号 2022-03-05 07:44:34 +08:00
parent eb0753ea72
commit 862523fdbf

View File

@ -11,9 +11,9 @@ export default defineConfig({
formats: ['cjs'],
fileName: () => '[name].cjs',
},
sourcemap: true,
minify: process.env./* from mode option */NODE_ENV === 'production',
emptyOutDir: true,
// https://github.com/caoxiemeihao/electron-vue-vite/issues/61
sourcemap: 'inline',
rollupOptions: {
external: [
'electron',