-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
minifier: alpha release #8264
Comments
I want to stabilize an alpha version this week, which consists of safe peephole optimizations, some refactorings, test clean up and documentation. This leaves out:
|
Current implementation of |
It seems like most peephole optimizations are done, time to stabilize:
Note: esbuild has a "bug" regarding constant folding multiplication, division and exponential - https://github.com/evanw/esbuild/blob/df815ac27b84f8b34374c9182a93c94718f8a630/internal/js_parser/js_parser.go#L10369-L10380 It "accidently" or "unintentially" folded more than it should, which lead to a bit of unstableness 😅 |
i am going to try port mangleStmtshttps://github.com/evanw/esbuild/blob/v0.24.2/internal/js_ast/js_ast_helpers.go#L2745
|
@camc314 Thank you. Can we hold onto the the larger changes such as control flow optimizations and inlinings? Things get difficult when state tracking is required. But you may start implementing them, I won't be able to merge them until I stabilize everything else. |
Tracking a range of misc minifier improvements vs esbuild
remove unneccessary labelsinline single use constThe text was updated successfully, but these errors were encountered: