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
Run DCE without minify? #3706
Comments
I assume that you are asking for a way to get esbuild to unwrap the |
I mean, can esbuild remove dead code (if loop with false statement) but don't minify script? |
Thanks! |
Can esbuild run DCE (dead code elimination) without
--minify
?https://esbuild.github.io/try/#dAAwLjIwLjIALS1kZWZpbmU6REVCVUc9dHJ1ZSAtLW1pbmlmeQBpZiAoREVCVUcpIHsKICBjb25zb2xlLmxvZygiZGVidWcgbWVzc2FnZSIpOwp9CmNvbnNvbGUubG9nKCJqdXN0IGEgbWVzc2FnZSIpOw
If you remove
--minify
DEBUG
will be replaced withtrue
The text was updated successfully, but these errors were encountered: