mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
8df1210b63
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);
|