1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00
denoland-deno/cli/tests/testdata/compat
Bartek Iwańczuk 617eeabe83
feat(unstable): Node CJS and ESM resolvers for compat mode (#12424)
This commit adds CJS and ESM Node resolvers to the "--compat" mode.

The functionality is spread across "cli/compat" module and Node compatibility
layer in "deno_std/node"; this stems from the fact that ES module resolution
can only be implemented in Rust as it needs to directly integrated with 
"deno_core"; however "deno_std/node" already provided CJS module resolution.

Currently this resolution is only active when running a files using 
"deno run --compat --unstable <filename>", and is not available in other
subcommands, which will be changed in follow up commits.
2021-10-18 19:36:28 +02:00
..
fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
fs_promises.out feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00
globals.out feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
globals.ts feat(compat): inject Node globals (#12342) 2021-10-06 19:07:04 +02:00
node_fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
test.txt feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00