File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ cache, to avoid duplication. The same object will be returned in
426
426
CommonJS if the JSON module has already been imported from the
427
427
same path.
428
428
429
- Assuming an ` index .js ` with
429
+ Assuming an ` index .mjs ` with
430
430
431
431
<!-- eslint-skip -->
432
432
` ` ` js
@@ -437,8 +437,8 @@ The `--experimental-json-modules` flag is needed for the module
437
437
to work.
438
438
439
439
` ` ` bash
440
- node -- experimental- modules -- entry - type = module index .js # fails
441
- node -- experimental- modules -- entry - type = module -- experimental- json- modules index .js # works
440
+ node -- experimental- modules index .mjs # fails
441
+ node -- experimental- modules -- experimental- json- modules index .mjs # works
442
442
` ` `
443
443
444
444
## Experimental Loader hooks
@@ -593,9 +593,6 @@ of these top-level routines.
593
593
594
594
_isMain_ is **true** when resolving the Node.js application entry point.
595
595
596
- When using the ` -- entry- type` flag, it overrides the ESM_FORMAT result while
597
- providing errors in the case of explicit conflicts.
598
-
599
596
<details>
600
597
<summary>Resolver algorithm specification</summary>
601
598
You can’t perform that action at this time.
0 commit comments