File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -354,10 +354,10 @@ The conditions supported in Node.js are matched in the following order:
354
354
4 . ` "default" ` - the generic fallback that will always match if no other
355
355
more specific condition is matched first. Can be a CommonJS or ES module
356
356
file.
357
-
357
+
358
358
> Setting any of the above flagged conditions for a published package is not
359
- recommended until they are unflagged to avoid breaking changes to packages in
360
- future.
359
+ > recommended until they are unflagged to avoid breaking changes to packages in
360
+ > future.
361
361
362
362
Using the ` "require" ` condition it is possible to define a package that will
363
363
have a different exported value for CommonJS and ES modules, which can be a
@@ -516,9 +516,8 @@ ES module wrapper is used for `import` and the CommonJS entry point for
516
516
` require ` .
517
517
518
518
> Note: While ` --experimental-conditional-exports ` is flagged, a package
519
- > using this pattern will throw when loaded via ` require() ` in modern
520
- > Node.js, unless package consumers use the ` --experimental-conditional-exports `
521
- > flag.
519
+ > using this pattern will throw when loaded unless package consumers use the
520
+ > ` --experimental-conditional-exports ` flag.
522
521
523
522
<!-- eslint-skip -->
524
523
``` js
You can’t perform that action at this time.
0 commit comments