1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/cli/args
David Sherret 2bbfef137c
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-27 09:50:38 -05:00
..
deno_json.rs fix(lockfile): track dependencies specified in TypeScript compiler options (#26551) 2024-11-20 00:49:19 +00:00
flags.rs feat(unstable): repurpose --unstable-detect-cjs to attempt loading more modules as cjs (#27094) 2024-11-27 09:50:38 -05:00
flags_net.rs refactor(runtime/permissions): use concrete error types (#26464) 2024-11-04 09:17:21 -08:00
import_map.rs refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
lockfile.rs fix(lockfile): track dependencies specified in TypeScript compiler options (#26551) 2024-11-20 00:49:19 +00:00
mod.rs feat(unstable): repurpose --unstable-detect-cjs to attempt loading more modules as cjs (#27094) 2024-11-27 09:50:38 -05:00
package_json.rs fix: surface package.json location on dep parse failure (#26665) 2024-10-31 15:35:17 +00:00