0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-02 20:55:35 -05:00
denoland-deno/tests/specs/npm/info_peer_deps_json/main.ts
David Sherret 8cd9fa6aae
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-28 15:47:26 +01: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);