-
Notifications
You must be signed in to change notification settings - Fork 448
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
fix: add node.module
export condition
#4798
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3e6a34a
to
9e32e16
Compare
Hold off on merging this, we just had an incident come in with |
Converted to draft until the next issues are resolved. |
A fix has landed in a recent |
Does this mean this PR is ready for review now, or that it is no longer necessary? |
It means we're ready for review :) I'll rebase and fix the conflicts 🙌 |
9e32e16
to
73522bc
Compare
No top level dependency changes detected. Learn more about Socket for GitHub ↗︎ |
73522bc
to
9aa331e
Compare
6f73e65
to
2df6cb4
Compare
Component Testing Report Updated Nov 28, 2023 12:59 PM (UTC)
|
e7bf4c3
to
4151f2e
Compare
@stipsan is this still relevant? Anything else needs doing here? |
We're seeing signal that it is increasingly relevant in embedded studios for plugins. We recently needed to add it to Because of the benefit being so small, and there being a risk that it might throw a wrench in someone's build, I'm not sure we should merge this 🤔 |
Thanks for clarifying. Let's leave it open for now and revisit later. I've unassigned the dx team as reviwewers, feel free to re-assign if/when you think we should pick it up again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as code owner (not really relevant here, DX should hold this)
b03d130
to
994c8e7
Compare
No changes to documentation |
994c8e7
to
066009b
Compare
Description
The ESM saga never ends 💃
This time there's trouble in build tools that understand the
node
andimport
conditions but don't support the CJS re-export pattern we use for node to protect against the "Dual Package Hazard" among other things.How do we solve it?
By adding a condition that bundlers understand, but node ignores:
node.module
.What to review
If it builds it works, if anything the bundlesize on a lot of systems will be smaller if they previously used
node.import
as the ESM to CJS detour adds some fluff. Now they'll cut the fluff and be able to stay in ESM land.Notes for release
node.module
conditions, improves compatibility with Webpack, Astro, Svelte and Vue