File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -388,10 +388,9 @@ The conditions supported in Node.js are matched in the following order:
388
388
file.
389
389
390
390
Using the ` "require" ` condition it is possible to define a package that will
391
- have a different exported value for CommonJS and ES modules, which is a hazard
392
- in that it can result in having two separate instances of the same package in
393
- use in an application, which can cause a number of bugs. For a safe way to
394
- define packages for use via both ` require() ` and ` import ` , see the next section.
391
+ have a different exported value for CommonJS and ES modules, which can be a
392
+ hazard in that it can result in having two separate instances of the same
393
+ package in use in an application, which can cause a number of bugs.
395
394
396
395
Other conditions such as ` "browser" ` , ` "electron" ` , ` "deno" ` , ` "react-native" `
397
396
etc. can be defined in other runtimes or tools.
You can’t perform that action at this time.
0 commit comments