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
feat(es/minifier): switches #4260
Conversation
FYI, |
terser enables |
crates/swc_ecma_minifier/tests/terser/compress/switch/drop_case/output.js
Show resolved
Hide resolved
af8a9fe
to
86fec88
Compare
1d1a1b8
to
d859b4c
Compare
539a779
to
baf2c1c
Compare
crates/swc_ecma_minifier/tests/terser/compress/switch/drop_case_2/output.js
Show resolved
Hide resolved
f152ac9
to
e1358f9
Compare
@@ -1,2 +1 @@ | |||
id(123); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug of dead_branch_remover
crates/swc_ecma_minifier/tests/terser/compress/switch/keep_case/output.js
Show resolved
Hide resolved
crates/swc_ecma_minifier/tests/terser/compress/switch/gut_entire_switch/config.json
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This is not approval, just to prevent forgetting a version bump
swc-bump:
- swc_ecma_utils --breaking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I reviewed tests and those look good. I have some concern about future debugging (mainly infinite loop)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Description:
switches
by defaultBREAKING CHANGE:
Related issue (if exists):