8000 [babel 8] Remove unnecessary CJS ESM wrapper by nicolo-ribaudo · Pull Request #17261 · babel/babel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[babel 8] Remove unnecessary CJS ESM wrapper #17261

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

Merged
merged 3 commits into from
Apr 25, 2025

Conversation

nicolo-ribaudo
Copy link
Member
@nicolo-ribaudo nicolo-ribaudo commented Apr 25, 2025
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

All Node.js version supported by Babel 8 support require(esm).

Note that the e2e "babel 7 plugins with babel 8 core" is affected by the bug fixed by nodejs/node#57187. That is only in our tests, and not in the actual Babel code.

@nicolo-ribaudo nicolo-ribaudo added the PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release label Apr 25, 2025
@babel-bot
Copy link
Collaborator
babel-bot commented Apr 25, 2025

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

@nicolo-ribaudo nicolo-ribaudo force-pushed the drop-cjs-proxy branch 3 times, most recently from 51e4df2 to 0ae6639 Compare April 25, 2025 13:39
"The `types` export of @babel/core is only accessible from" +
" the CommonJS version after that the ESM version is loaded.",
);
await expect(run("eager-plugin-required.cjs")).resolves.not.toThrow();
Copy link
Contributor

Choose a reason for hiding this comment

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

This test should be updated to the inline snapshot similar to other sub tests here.

@nicolo-ribaudo nicolo-ribaudo merged commit c19e00e into babel:main Apr 25, 2025
56 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the drop-cjs-proxy branch April 25, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Internal (next major) 🏠 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0