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

Inline dynamic import transform #15026

Merged

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Oct 7, 2022

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

We should start working on babel/rfcs#4 (cc @JLHwung), but having the dynamic import transform in a separate repository makes it very hard to do so (aka impossible) because:

  • well, we don't publish breaking changes on npm yet
  • even if we did, the breaking change in the parser would make the transform tests fail until the separate repository is updated

This PR "inlines" https://github.com/airbnb/babel-plugin-dynamic-import-node/blob/master/src/utils.js (actually, I rewrote most of the code to adapt it to our style and to remove some parts only needed for compatibility with older Babel major versions).

@nicolo-ribaudo nicolo-ribaudo force-pushed the inline-dynamic-import-transform branch 2 times, most recently from 8d317e1 to 2701f09 Compare October 7, 2022 13:38
@babel-bot
Copy link
Collaborator

babel-bot commented Oct 7, 2022

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

@nicolo-ribaudo nicolo-ribaudo force-pushed the inline-dynamic-import-transform branch 2 times, most recently from 589e158 to 24d854b Compare October 7, 2022 13:58
@nicolo-ribaudo nicolo-ribaudo merged commit 3526b79 into babel:main Oct 17, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the inline-dynamic-import-transform branch October 17, 2022 08:18
texpert added a commit to texpert/rails_6_rss_reader that referenced this pull request Nov 8, 2022
…amic import transform code has been refactored and inlined - see babel/babel#15026
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 17, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: modules 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.

None yet

4 participants