-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor(es/minifier): Remove mangle.safari10
#8857
Conversation
|
|
…ld to match terser api
@@ -130,7 +130,7 @@ where | |||
{ | |||
let mut scope = { | |||
let mut v = Analyzer { | |||
safari_10: self.config.safari_10, | |||
safari_10: false, |
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.
Can use Default::default()
here?
…tests
You can do |
@kdy1 I think we'll have divergence with the terser output for the @kzc has an interesting stance on the |
Yeap, it's fine |
…ari10 option
…ug with safari10 feature
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.
swc-bump:
- swc_ecma_transforms_base
- swc_ecma_minifier
- swc_core
mangle.safari10
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.
Automated review comment generated by auto-rebase script
Can you run |
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.
Automated review comment generated by auto-rebase script
When the
mangle.safari10
option is set to true identifiers are re-used in thetry/catch
block which results in a parse error.Description:
Using the
mangle.safari10
option causes identifiers to be re-used in atry/catch
block.BREAKING CHANGE:
Related issue (if exists):
#8837