enable tree-shaking in transform mode when both --minify and --format flags are specified#1617
enable tree-shaking in transform mode when both --minify and --format flags are specified#1617yyx990803 wants to merge 1 commit intoevanw:masterfrom
Conversation
also add dedicated --minify-unused flag. closes evanw#1610
|
Thanks for the thoughtful issue and PRs. I do want to get this fixed and this PR looks like a good implementation of this specific approach. However, I'd still like to think through the alternate approach of augmenting
I'm imagining that
I don't think there's a conflict with |
|
That sounds good to me! I avoided it mostly because I didn't want to change the behavior of ignore-annotations, but since you are ok with that then I think it's straightforward to just pass --tree-shaking=true. Feel free to close this PR if you decide to go ahead with it, or I can modify this to reflect the change. |
|
I have now looked into this and I was wrong: |
Also add dedicated --minify-unused flag. Please see committed changelog entry for more details.
closes #1610