Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression (#13842)
* fix: register function expression id after params * implement bugfix plugin * add more testcases * fix: do not skip pattern binding referencing id * update compat-table * add bugfix plugin to preset-env * update Babel 8 test fixtures * Update packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md * chore: bundle bugfix plugin * address review comments * add runtime version check * update compat table * fix syntax error * update test fixtures * revert bugfixes targets update * update Babel 8 test fixtures
This commit is contained in:
@@ -31,6 +31,10 @@ module.exports = {
|
||||
],
|
||||
replaces: "transform-block-scoping",
|
||||
},
|
||||
"bugfix/transform-safari-id-destructuring-collision-in-function-expression": {
|
||||
features: ["destructuring, parameters / duplicate identifier"],
|
||||
replaces: "transform-parameters",
|
||||
},
|
||||
"bugfix/transform-tagged-template-caching": {
|
||||
features: ["template literals / TemplateStrings permanent caching"],
|
||||
replaces: "transform-template-literals",
|
||||
|
||||
@@ -18,6 +18,7 @@ const es2015Parameter = {
|
||||
"rest parameters",
|
||||
"destructuring, parameters / aliased defaults, arrow function",
|
||||
"destructuring, parameters / shorthand defaults, arrow function",
|
||||
"destructuring, parameters / duplicate identifier",
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user