Skip to content

Use helper-module-imports instead of custom import (#7457)#7534

Closed
Swatto wants to merge 1 commit intobabel:masterfrom
Swatto:use-require-7457
Closed

Use helper-module-imports instead of custom import (#7457)#7534
Swatto wants to merge 1 commit intobabel:masterfrom
Swatto:use-require-7457

Conversation

@Swatto
Copy link
Copy Markdown
Contributor

@Swatto Swatto commented Mar 9, 2018

Q                       A
Fixed Issues? Fixes #7457
Patch: Bug Fix? Yes
Major: Breaking Change? No
Minor: New Feature? No
Tests Added + Pass? No
Documentation PR No
Any Dependency Changes? Yes
License MIT

Some tests are not passing related to the entry plugin. Will fix that soon.

isPolyfillSource(path.node.expression.arguments[0].value);

const modulePathMap = {
"regenerator-runtime": "regenerator-runtime/runtime",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

u've removed this mapping, should be preserved for now

};

export const getModulePath = (mod: string) =>
modulePathMap[mod] || `core-js/modules/${mod}`;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this got removed to - you should prepend core-js to what you import

@hzoo hzoo closed this in #7562 Mar 15, 2018
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Env 7 / Node 4 useBuiltIns usage transpiling polyfill call with "import" not "require"

2 participants