File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 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:
3543544 . ` "default" ` - the generic fallback that will always match if no other
355355 more specific condition is matched first. Can be a CommonJS or ES module
356356 file.
357-
357+
358358> 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.
361361
362362Using the ` "require" ` condition it is possible to define a package that will
363363have 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
516516` require ` .
517517
518518> 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.
522521
523522<!-- eslint-skip -->
524523``` js
You can’t perform that action at this time.
0 commit comments