未验证 提交 32daad61 编写于 作者: Z ZhangZhiChao 提交者: GitHub

fix: 修复esbuild的drop_console (#2542)

上级 a4a5a440
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册