mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-07 20:58:11 +00:00
fix: 修复esbuild的drop_console (#2542)
This commit is contained in:
@@ -61,7 +61,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||
proxy: createProxy(VITE_PROXY),
|
||||
},
|
||||
esbuild: {
|
||||
pure: VITE_DROP_CONSOLE ? ['console.log', 'debugger'] : [],
|
||||
drop: VITE_DROP_CONSOLE ? ['console', 'debugger'] : [],
|
||||
},
|
||||
build: {
|
||||
target: 'es2015',
|
||||
|
Reference in New Issue
Block a user