-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dead code not removed. #1317
Comments
This isn't currently supported. If you want to do constant propagation like this, you can run Terser on the output of esbuild. |
Thanks for your reply, i will use terser before esbuild support it. |
Closing this issue since your example should work now that #1981 has been fixed, at least as long as you use console.log("flagA"),l();console.log("flagB");function l(){console.log("2322")} |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The dead code not removed. I found similar issue #598, but it not same case.
Input
Output
Expected Output
This is output emited by terser.
The text was updated successfully, but these errors were encountered: