fix js error
This commit is contained in:
parent
1581570d97
commit
c91a329676
@ -20,6 +20,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"choices.js": "^10.2.0",
|
||||
"d3": "^7.8.5"
|
||||
"d3": "^7.8.5",
|
||||
"terser": "^5.21.0"
|
||||
}
|
||||
}
|
||||
|
@ -14,6 +14,12 @@ export default defineConfig({
|
||||
],
|
||||
publicDir: false, // disable copy `public/` to outDir
|
||||
build: {
|
||||
minify: 'terser', // Explicitly specify to use terser for minification
|
||||
terserOptions: {
|
||||
mangle: false, // Disable variable name mangling
|
||||
keep_classnames: false,
|
||||
keep_fnames: false,
|
||||
},
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: './main.ts',
|
||||
|
Loading…
Reference in New Issue
Block a user