1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-23 15:39:49 -05:00
denoland-deno/cli/standalone
David Sherret bb3e918f4a
feat(unstable): repurpose --unstable-detect-cjs to attempt loading more modules as cjs (#27094)
This resurrects the `--unstable-detect-cjs` flag (which became stable),
and repurposes it to attempt loading .js/.jsx/.ts/.tsx files as CJS in
the following additional scenarios:

1. There is no package.json
1. There is a package.json without a "type" field

Also cleans up the implementation of this in the LSP a lot by hanging
`resolution_mode()` off `Document` (didn't think about doing that until
now).
2024-11-28 15:47:28 +01:00
..
binary.rs feat(unstable): repurpose --unstable-detect-cjs to attempt loading more modules as cjs (#27094) 2024-11-28 15:47:28 +01:00
code_cache.rs chore(compile): log code cache file path (#26977) 2024-11-28 15:47:21 +01:00
file_system.rs fix(compile): handle TypeScript file included as asset (#27032) 2024-11-28 15:47:23 +01:00
mod.rs feat(unstable): repurpose --unstable-detect-cjs to attempt loading more modules as cjs (#27094) 2024-11-28 15:47:28 +01:00
serialization.rs fix: improved support for cjs and cts modules (#26558) 2024-11-01 12:27:00 -04:00
virtual_fs.rs fix(compile): do not error embedding same symlink via multiple methods (#27015) 2024-11-28 15:47:24 +01:00