-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
module: expose exports conditions to loaders #31303
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
Conversation
|
/cc @nodejs/modules-active-members |
|
Nice work, this approach seems great! |
test/fixtures/es-module-loaders/loader-with-custom-condition.mjs
Outdated
Show resolved
Hide resolved
d05c96e to
66ebe58
Compare
|
Cleaned up and marking as ready for review. I updated the implementation to use a |
guybedford
left a comment
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.
Seems like a nice approach.
test/fixtures/es-module-loaders/loader-with-custom-condition.mjs
Outdated
Show resolved
Hide resolved
66ebe58 to
7c15d59
Compare
|
Ping @nodejs/modules-active-members, this is still lacking some reviews/approvals before we can land it. Adding it to the agenda in case it's still open by our next meeting. :) |
bmeck
left a comment
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.
I really like this PR! This falls into some things we are starting to see from the community about custom conditions like https://twitter.com/sebmarkbage/status/1234223477424447488 .
This comment has been minimized.
This comment has been minimized.
test/fixtures/es-module-loaders/loader-with-custom-condition.mjs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
guybedford
left a comment
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.
Would be great to see this moving forward :)
test/fixtures/es-module-loaders/loader-with-custom-condition.mjs
Outdated
Show resolved
Hide resolved
guybedford
left a comment
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.
Looks good, thanks.
8703335 to
19b2f4f
Compare
|
CI: https://ci.nodejs.org/job/node-test-pull-request/30219/ (:heavy_check_mark:) |
19b2f4f to
a14ba1e
Compare
This comment has been minimized.
This comment has been minimized.
a14ba1e to
8108485
Compare
8108485 to
2267d17
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2267d17 to
1549bc4
Compare
|
There's one C++ test that seems to fail on linuxone. I look into it briefly but I don't see a clear reason why it would fail (or what the failure really means). I'm surprised that this PR would affect low-level worker interactions but can't rule it out. |
|
@jkrems See #32563 – I just landed a fix for that. :) Is this still ready to land, apart from waiting for a green CI? |
Yes! This should be good to go, assuming CI comes back green. (And thanks for being on top of these build failures, much appreciated. :)) |
PR-URL: #31303 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
|
Landed in 9129ab1 |
PR-URL: #31303 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #31303 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: nodejs#31303 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
PR-URL: #31303 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webmaster@geoffreybooth.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes