1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 19:37:59 -05:00
denoland-deno/tests/specs/compile/detect_cjs
David Sherret 1a0cb5b531
feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149)
When using the `--unstable-detect-cjs` flag or adding `"unstable":
["detect-cjs"]` to a deno.json, it will make a JS file CJS if the
closest package.json contains `"type": "commonjs"` and the file is not
an ESM module (no TLA, no `import.meta`, no `import`/`export`).
2024-10-14 20:48:39 -04:00
..
__test__.jsonc feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
add.js feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
compile.out feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
deno.json feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
main.js feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
output.out feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00
package.json feat(unstable): --unstable-detect-cjs for respecting explicit "type": "commonjs" (#26149) 2024-10-14 20:48:39 -04:00