mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 11:58:42 -05:00
6d44952d4d
Fixes https://github.com/denoland/deno/issues/26505 I'm not exactly sure how this case comes about (I tried to write tests for it but couldn't manage to reproduce it), but what happens is the parent filename ends up null, and we bail out of resolving the specifier in package exports. I've checked, and in node the parent filename is also null (so that's not a bug on our part), but node continues to resolve even in that case. So this PR should match node's behavior more closely than we currently do.
8 lines
No EOL
143 B
JSON
8 lines
No EOL
143 B
JSON
{
|
|
"name": "@denotest/cjs-multiple-exports",
|
|
"version": "1.0.0",
|
|
"exports": {
|
|
".": "./src/index.js",
|
|
"./add": "./src/add.js"
|
|
}
|
|
} |