mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(npm): local nodeModulesDir was sometimes resolving duplicates of same package (#23320)
This commit is contained in:
parent
061bcb5393
commit
df73db671b
7 changed files with 45 additions and 5 deletions
10
tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx
Normal file
10
tests/specs/npm/local_dir_no_duplicate_resolution/main.tsx
Normal file
|
@ -0,0 +1,10 @@
|
|||
// this previously was ending up with two preacts and would crash
|
||||
import { useMemo } from "preact/hooks";
|
||||
import renderToString from "preact-render-to-string";
|
||||
|
||||
function Test() {
|
||||
useMemo(() => "test", []);
|
||||
return <div>Test</div>;
|
||||
}
|
||||
|
||||
const html = renderToString(<Test />);
|
Loading…
Add table
Add a link
Reference in a new issue