1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-20 22:34:46 -05:00
denoland-deno/tests/specs/npm/info_peer_deps/main.ts
David Sherret 115a306656
fix(node): correct resolution of dynamic import of esm from cjs (#27071)
Ensures a dynamic import in a CJS file will consider the referrer as an import for node resolution.

Also adds fixes (adds) support for `"resolution-mode"` in TypeScript.
2024-11-26 14:38:24 -05:00

5 lines
171 B
TypeScript

import version1 from "npm:@denotest/peer-dep-test-child@1";
import version2 from "npm:@denotest/peer-dep-test-child@2";
console.error(version1);
console.error(version2);