Commit 32daad619834a31929ab0aa19cb0d37b8662486d
Committed by
GitHub
1 parent
a4a5a440
fix: 修复esbuild的drop_console (#2542)
Showing
1 changed file
with
1 additions
and
1 deletions
vite.config.ts
... | ... | @@ -61,7 +61,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { |
61 | 61 | proxy: createProxy(VITE_PROXY), |
62 | 62 | }, |
63 | 63 | esbuild: { |
64 | - pure: VITE_DROP_CONSOLE ? ['console.log', 'debugger'] : [], | |
64 | + drop: VITE_DROP_CONSOLE ? ['console', 'debugger'] : [], | |
65 | 65 | }, |
66 | 66 | build: { |
67 | 67 | target: 'es2015', | ... | ... |