mirror of
https://github.com/denoland/deno.git
synced 2024-11-04 08:54:20 -05:00
383d40a33b
This commit fixes conditional exports in `require()` implementation if `--node-modules-dir` flag is used.
11 lines
414 B
JavaScript
11 lines
414 B
JavaScript
import mod from "npm:@denotest/conditional-exports";
|
|
import client from "npm:@denotest/conditional-exports/client";
|
|
import clientFoo from "npm:@denotest/conditional-exports/client/foo";
|
|
import clientBar from "npm:@denotest/conditional-exports/client/bar";
|
|
import supportsESM from "npm:supports-esm";
|
|
|
|
console.log(mod);
|
|
console.log(client);
|
|
console.log(clientFoo);
|
|
console.log(clientBar);
|
|
console.log(supportsESM);
|