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:
Huáng Jùnliàng
2021-10-20 15:53:40 -04:00
committed by GitHub
parent 780aa48d2a
commit 29f697c84e
195 changed files with 731 additions and 310 deletions

View File

@@ -465,6 +465,7 @@ const libBundles = [
"packages/babel-preset-typescript",
"packages/babel-helper-member-expression-to-functions",
"packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining",
"packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression",
].map(src => ({
src,
format: "cjs",