Skip to content

Commit fb83487

Browse files
committed
tweak experimentalResolver docs
1 parent 076047c commit fb83487

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

website/docs/options.md

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

372372
Enable experimental hooks that re-map imports and require calls to support:
373373

374-
* `.js` to `.ts` mappings, so that `import "foo.js"` can execute `foo.ts`
375-
* `.cjs` to `.cts` mapping
376-
* `.mjs` to `.mts` mapping
374+
* resolves `.js` to `.ts`, so that `import "./foo.js"` will execute `foo.ts`
375+
* resolves `.cjs` to `.cts`
376+
* resolves `.mjs` to `.mts`
377+
* allows including file extensions in CommonJS, for consistency with ESM where this is often mandatory
377378

378379
In the future, this hook will also support:
379380

@@ -383,7 +384,7 @@ In the future, this hook will also support:
383384

384385
For details, see [#1514](https://github.com/TypeStrong/ts-node/issues/1514).
385386

386-
*Default:* `false`<br/>
387+
*Default:* `false`, but will likely be enabled by default in a future version<br/>
387388
*Can only be specified via `tsconfig.json` or API.*
388389

389390
### experimentalSpecifierResolution

0 commit comments

Comments
 (0)