File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -374,10 +374,12 @@ Disable top-level await in REPL. Equivalent to node's [`--no-experimental-repl-
374
374
375
375
Enable experimental hooks that re-map imports and require calls to support:
376
376
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
381
383
382
384
In the future, this hook will also support:
383
385
You can’t perform that action at this time.
0 commit comments