Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ By default `@knighted/module` transforms the one-to-one [differences between ES

## Requirements

- Node >= 22.21.1
- Node 22 or 24 (tested on 22.21.1 and 24.11.1)

## Install

Expand Down Expand Up @@ -137,6 +137,9 @@ Behavior notes (defaults in parentheses)

See [docs/esm-to-cjs.md](docs/esm-to-cjs.md) for deeper notes on live bindings, interop helpers, top-level await behavior, and `import.meta.main` handling. For CommonJS to ESM lowering details, read [docs/cjs-to-esm.md](docs/cjs-to-esm.md).

> [!NOTE]
> Known limitations: `with` and unshadowed `eval` are rejected when raising CJS to ESM because the rewrite would be unsound; bare specifiers are not rewritten—only relative specifiers participate in `rewriteSpecifier`.

## Roadmap

- Emit source maps and clearer diagnostics for transform choices.
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"#formatters/*.js": "./src/formatters/*.js"
},
"engines": {
"node": ">=22.21.1"
"node": ">=22.21.1 <23 || >=24 <25"
},
"engineStrict": true,
"scripts": {
Expand Down