summaryrefslogtreecommitdiff
path: root/cli/compat/testdata
AgeCommit message (Collapse)Author
2022-02-07fix(compat): ESM resolver for package subpath (#13599)Bartek Iwańczuk
2021-11-01port check_if_should_use_esm_loader to rust (#12562)Ryan Dahl
2021-10-18feat(unstable): Node CJS and ESM resolvers for compat mode (#12424)Bartek Iwańczuk
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.