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

Respect moduleName for @babel/runtime/regenerator imports #16329

2 changes: 1 addition & 1 deletion packages/babel-runtime-corejs2/helpers/typeof.js
Expand Up @@ -6,7 +6,7 @@ function _typeof(o) {
return (module.exports = _typeof = "function" == typeof _Symbol && "symbol" == typeof _Symbol$iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof _Symbol && o.constructor === _Symbol && o !== _Symbol.prototype ? "symbol" : typeof o;
return o && "function" == typeof _Symbol && o.constructor === _Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a bug

}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2 changes: 1 addition & 1 deletion packages/babel-runtime-corejs3/helpers/esm/typeof.js
Expand Up @@ -6,6 +6,6 @@ export default function _typeof(o) {
return _typeof = "function" == typeof _Symbol && "symbol" == typeof _Symbol$iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof _Symbol && o.constructor === _Symbol && o !== _Symbol.prototype ? "symbol" : typeof o;
return o && "function" == typeof _Symbol && o.constructor === _Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}