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:
@@ -11,11 +11,12 @@ var _Child2 = babelHelpers.interopRequireDefault(require("./Child"));
|
||||
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
|
||||
function MyComponent({
|
||||
closeFn
|
||||
}) {
|
||||
function MyComponent(_ref) {
|
||||
var _Child;
|
||||
|
||||
let {
|
||||
closeFn
|
||||
} = _ref;
|
||||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Parent.default, {
|
||||
render: () => _Child || (_Child = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Child2.default, {
|
||||
closeFn: closeFn
|
||||
|
||||
Reference in New Issue
Block a user