File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,10 @@ Node.js supports the following conditions:
424
424
* ` "import" ` - matched when the package is loaded via ` import ` or
425
425
` import() ` . Can reference either an ES module or CommonJS file, as both
426
426
` import ` and ` import() ` can load either ES module or CommonJS sources.
427
+ _ Always matched when the ` "require" ` condition is not matched._
427
428
* ` "require" ` - matched when the package is loaded via ` require() ` .
428
429
As ` require() ` only supports CommonJS, the referenced file must be CommonJS.
430
+ _ Always matched when the ` "import" ` condition is not matched._
429
431
* ` "node" ` - matched for any Node.js environment. Can be a CommonJS or ES
430
432
module file. _ This condition should always come after ` "import" ` or
431
433
` "require" ` ._
You can’t perform that action at this time.
0 commit comments