Skip to content
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

Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression #13842

Merged
Expand Up @@ -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;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is for Babel 8 only. We should work on enabling bugfixes by default in Babel 8.

return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Parent.default, {
render: () => _Child || (_Child = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Child2.default, {
closeFn: closeFn
Expand Down