File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -371,9 +371,10 @@ Disable top-level await in REPL. Equivalent to node's [`--no-experimental-repl-
371
371
372
372
Enable experimental hooks that re-map imports and require calls to support:
373
373
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
377
378
378
379
In the future, this hook will also support:
379
380
@@ -383,7 +384,7 @@ In the future, this hook will also support:
383
384
384
385
For details, see [ #1514 ] ( https://github.com/TypeStrong/ts-node/issues/1514 ) .
385
386
386
- * Default:* ` false ` <br />
387
+ * Default:* ` false ` , but will likely be enabled by default in a future version <br />
387
388
* Can only be specified via ` tsconfig.json ` or API.*
388
389
389
390
### experimentalSpecifierResolution
You can’t perform that action at this time.
0 commit comments