mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

1. Make sure that the conditions are converted into arrays when being passed into user hooks. 2. Pass the conditions from user hooks into the ESM resolution so that it takes effect. PR-URL: https://github.com/nodejs/node/pull/59011 Fixes: https://github.com/nodejs/node/issues/59003 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Jacob Smith <jacob@frende.me>
28 lines
No EOL
573 B
JSON
28 lines
No EOL
573 B
JSON
{
|
|
"exports": {
|
|
".": {
|
|
"foo": "./foo.cjs",
|
|
"foo-esm": "./foo-esm.mjs",
|
|
"default": "./default.cjs"
|
|
},
|
|
"./second": {
|
|
"foo": "./foo.cjs",
|
|
"foo-esm": "./foo-esm.mjs",
|
|
"default": "./default.cjs"
|
|
},
|
|
"./third": {
|
|
"foo": "./foo.cjs",
|
|
"foo-esm": "./foo-esm.mjs",
|
|
"default": "./default.cjs"
|
|
},
|
|
"./fourth": {
|
|
"foo": "./foo.cjs",
|
|
"foo-esm": "./foo-esm.mjs",
|
|
"default": "./default.cjs"
|
|
},
|
|
"./no-default": {
|
|
"foo": "./foo.cjs",
|
|
"foo-esm": "./foo-esm.mjs"
|
|
}
|
|
}
|
|
} |