Skip to content

Commit cc0ca8b

Browse files
authored
Update options.md (#1768)
1 parent 78d103f commit cc0ca8b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

website/docs/options.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,12 @@ Disable top-level await in REPL. Equivalent to node's [`--no-experimental-repl-
374374

375375
Enable experimental hooks that re-map imports and require calls to support:
376376

377-
* resolves `.js` to `.ts`, so that `import "./foo.js"` will execute `foo.ts`
378-
* resolves `.cjs` to `.cts`
379-
* resolves `.mjs` to `.mts`
380-
* allows including file extensions in CommonJS, for consistency with ESM where this is often mandatory
377+
* remapping extensions, e.g. so that `import "./foo.js"` will execute `foo.ts`. Currently the following extensions will be mapped:
378+
* `.js` to `.ts`, `.tsx`, or `.jsx`
379+
* `.cjs` to `.cts`
380+
* `.mjs` to `.mts`
381+
* `.jsx` to `.tsx`
382+
* including file extensions in CommonJS, for consistency with ESM where this is often mandatory
381383

382384
In the future, this hook will also support:
383385

0 commit comments

Comments
 (0)