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

preset-env: adds dynamic import flag for caller #9057

Closed
wants to merge 1 commit into from

Conversation

thiagoarrais
Copy link
Contributor

Q                       A
Fixed Issues? Fixes babel/babel-loader#515
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature? 👍
Tests Added + Pass? 👍
Documentation PR Link
Any Dependency Changes? 👍
License MIT

This interprets the supportsDynamicImport caller flag. It was introduced in babel-loader by babel/babel-loader#660 and signals that the target env supports dynamic imports natively.

When this gets merged, it should no longer be necessary to manually include the dynamic import syntax plugin in the webpack config. Thus fixing babel/babel-loader#515.

Needs for conclusion:

  • Docs for new flag

References: babel/babel-loader#714 (defunct), babel/babel-loader#515

@thiagoarrais
Copy link
Contributor Author

Can work on docs in case this gets merged.

@thiagoarrais
Copy link
Contributor Author

@loganfsmyth and @existentialism: this is a follow up to babel/babel-loader#714. Would you mind reviewing it?

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9423/

1 similar comment
@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/9423/

@existentialism
Copy link
Member

@thiagoarrais thanks for the PR! as mentioned before, I had a branch with similar code... but we still should discuss logan's point in the original thread:

babel/babel-loader#714 (comment)

@thiagoarrais
Copy link
Contributor Author

Closing in favor of #10109

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 3, 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.

[feature request] include dynamic import syntax plugin automatically
3 participants