mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 19:37:59 -05:00
617eeabe83
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.
7 lines
93 B
JSON
7 lines
93 B
JSON
{
|
|
"name": "main_program",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"foo": "1.0.0"
|
|
}
|
|
}
|