-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terserOptions 配置 drop_console: true, // 移除 console drop_debugger: true, // 移除 debugger 参数不起作用 #19035
Comments
This is because we disable minification for lib mode. vite/packages/vite/src/node/plugins/terser.ts Lines 90 to 91 in ac32968
Probably we can enable it and set comments: 'all' automatically.
|
There is indeed a lib compression scenario, I do not know whether the official can support it |
Sometimes confusion is needed, what should be done? |
Describe the bug
drop_console: true, // 移除 console
drop_debugger: true, // 移除 debugger
参数不起作用
Reproduction
https://stackblitz.com/edit/vitejs-vite-sppmrduq?file=index.ts&terminal=build
Steps to reproduce
System Info
Used Package Manager
npm
Logs
Click to open
Validations
The text was updated successfully, but these errors were encountered: