diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-11-19 09:57:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 09:57:12 -0500 |
commit | 186b52731c6bb326c4d32905c5e732d082e83465 (patch) | |
tree | 043316c7fc58f18e29c42f35ebfbc6b68eddcca1 /tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js | |
parent | 661aa22c03f829489e2d9289dee0a8292a95227a (diff) |
fix(node): handle resolving ".//<something>" in npm packages (#26920)
The issue was this package had an import like: `".//index.js"` and we
resolved that as specified, but node normalizes it to `"./index.js"` so
we have to copy node.
Diffstat (limited to 'tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js')
-rw-r--r-- | tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js new file mode 100644 index 000000000..7d658310b --- /dev/null +++ b/tests/registry/npm/@denotest/specifier-two-slashes/1.0.0/other.js @@ -0,0 +1,3 @@ +export function add(a, b) { + return a + b; +} |