Browse Source

fix: 修复esbuild的drop_console (#2542)

pull/2555/head
ZhangZhiChao 4 years ago
committed by GitHub
parent
commit
32daad6198
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      vite.config.ts

2
vite.config.ts

@ -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',

Loading…
Cancel
Save