Skip to content

Commit ecd1017

Browse files
committed
linting fixes, update other msg
1 parent c7fe517 commit ecd1017

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doc/api/esm.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ The conditions supported in Node.js are matched in the following order:
354354
4. `"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
362362
Using the `"require"` condition it is possible to define a package that will
363363
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
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

0 commit comments

Comments
 (0)