Any chance we could add an extra option to swc.minify
#6285
Unanswered
IWANABETHATGUY
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Or would you mind if I open a pr to change the visibility of this field to |
Beta Was this translation helpful? Give feedback.
0 replies
-
Aren't you using it from rust? DCE is a separate pass, and I'm not sure why are you trying to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/swc-project/swc/blob/main/crates/swc/src/lib.rs#L924-L928
Any chance we could add an extra param
minfiy: bool
, sometimes we want to useDCE
of swcminify
without minifying the code,(for example development mode, DCE could improve the first screen time)In such a way, we could pass the
minify
param to https://github.com/swc-project/swc/blob/main/crates/swc/src/lib.rs#L1068. I try to copy theminify
and override it but failed because some part struct is private. (https://github.com/swc-project/swc/blob/main/crates/swc/src/lib.rs#L1019).Beta Was this translation helpful? Give feedback.
All reactions