We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I could not find a way to remove debugger from output JS during minification
debugger
I was able to remove console.log using pure option but not the debugger
console.log
Related Issue #28
The text was updated successfully, but these errors were encountered:
The way to do this with esbuild is to use general-purpose code-removal mechanisms like this:
if (!window.REMOVE_DEBUGGER) debugger;
If you pass --define:window.REMOVE_DEBUGGER=true --minify to esbuild, this code will be removed.
--define:window.REMOVE_DEBUGGER=true --minify
Sorry, something went wrong.
The debugger should be removed by default during minification.
Or allow us to mark it as pure
pure
ce7262f
No branches or pull requests
Hi,
I could not find a way to remove
debugger
from output JS during minificationI was able to remove
console.log
using pure option but not the debuggerRelated Issue
#28
The text was updated successfully, but these errors were encountered: