mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 22:21:15 +00:00
fix(npm): canonicalize filename before returning (#18948)
This commit changes how paths for npm packages are handled, by canonicalizing them when resolving. This is done so that instead of returning "node_modules/<package_name>@<version>/node_modules/<dep>/index.js" (which is a symlink) we "node_modules/<dep>@<dep_version>/index.js. Fixes https://github.com/denoland/deno/issues/18924 Fixes https://github.com/bluwy/create-vite-extra/issues/31 --------- Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
parent
000315e75a
commit
2f651b2d64
26 changed files with 135 additions and 112 deletions
3
cli/tests/testdata/npm/local_dir_resolves_symlinks/index.js
vendored
Normal file
3
cli/tests/testdata/npm/local_dir_resolves_symlinks/index.js
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
import * as d from "define-properties";
|
||||
|
||||
console.log(typeof d.default === "function", "it works");
|
Loading…
Add table
Add a link
Reference in a new issue