Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-24 | compat: support compat mode in REPL (#12882) | Bartek Iwańczuk | |
This commit introduces "ProcState::maybe_resolver" field, which stores a single instance of resolver for the whole lifetime of the process, instead of creating these resolvers for each creation of module graph. As a result, this resolver can be used in fallback case where graph is not constructed (REPL, loading modules using "require") unifying resolution logic. | |||
2021-10-18 | feat(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. |