Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-11-01 | fix: improved support for cjs and cts modules (#26558) | David Sherret | |
* cts support * better cjs/cts type checking * deno compile cjs/cts support * More efficient detect cjs (going towards stabilization) * Determination of whether .js, .ts, .jsx, or .tsx is cjs or esm is only done after loading * Support `import x = require(...);` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2024-10-14 | feat(unstable): `--unstable-detect-cjs` for respecting explicit `"type": ↵ | David Sherret | |
"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`). |