Huáng Jùnliàng 29f697c84e
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
2021-10-20 15:53:40 -04:00

49 lines
1.7 KiB
JavaScript

/* eslint sort-keys: "error" */
module.exports = {
"bugfix/transform-async-arrows-in-class": {
features: ["async functions / async arrow functions in methods, classes"],
replaces: "transform-async-to-generator",
},
"bugfix/transform-edge-default-parameters": {
features: [
"destructuring, parameters / shorthand defaults, arrow function",
],
replaces: "transform-parameters",
},
"bugfix/transform-edge-function-name": {
features: ['function "name" property / variables (function)'],
replaces: "transform-function-name",
},
"bugfix/transform-safari-block-shadowing": {
features: [
"const / scope shadow resolution",
"const / scope shadow resolution (strict mode)",
"let / scope shadow resolution",
"let / scope shadow resolution (strict mode)",
],
replaces: "transform-block-scoping",
},
"bugfix/transform-safari-for-shadowing": {
features: [
"let / for-in loop binding shadowing parameter",
"let / for-in loop binding shadowing parameter (strict mode)",
],
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",
},
"bugfix/transform-v8-spread-parameters-in-optional-chaining": {
features: [
"optional chaining operator (?.) / spread parameters after optional chaining",
],
replaces: "proposal-optional-chaining",
},
};