mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04: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);
|