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

Bring back deferred require() calls in core and cli #14028

Merged
merged 1 commit into from Dec 6, 2021

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Dec 5, 2021

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

#13966 accidentally introduced a performance regression by removing lazy requires from @babel/core and @babel/cli, because the first @babel/transform-modules-commonjs configuration was overwritten by the second one.
Rather than just reordering them I added an explicit exclude, so that it's more robust.

@nicolo-ribaudo nicolo-ribaudo changed the title Bring back deferred requrie() calls in core and cli Bring back deferred require() calls in core and cli Dec 5, 2021
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 5, 2021

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

@nicolo-ribaudo
Copy link
Member Author

I just squashed to rebase #14013 on top of this one.

@nicolo-ribaudo
Copy link
Member Author

The remaining CRA failure is not related.

@nicolo-ribaudo nicolo-ribaudo merged commit 3a85ddf into babel:main Dec 6, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the lazy-requires branch December 6, 2021 20:33
@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 Mar 8, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: config outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Fixes failing main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants