File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -603,14 +603,14 @@ not possible to replace the value of a Node.js builtin (core) module.
603
603
604
604
The value of ` source` can be omitted for type ` ' commonjs' ` :
605
605
606
- - When a ` source` is provided, all ` require` calls from this module will be
606
+ * When a ` source` is provided, all ` require` calls from this module will be
607
607
processed by the ESM loader with registered ` resolve` and ` load` hooks; all
608
608
` require .resolve ` calls from this module will be processed by the ESM loader
609
609
with registered ` resolve` hooks; only a subset of the CommonJS API will be
610
610
available (e.g. no ` require .extensions ` , no ` require .cache ` , no
611
611
` require .resolve .paths ` ) and monkey-patching on the CommonJS module loader
612
612
will not apply.
613
- - If ` source` is undefined or ` null ` , it will be handled by the CommonJS module
613
+ * If ` source` is undefined or ` null ` , it will be handled by the CommonJS module
614
614
loader and ` require` /` require .resolve ` calls will not go through the
615
615
registered hooks. This behavior for nullish ` source` is temporary — in the
616
616
future, nullish ` source` will not be supported.
You can’t perform that action at this time.
0 commit comments