summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Bedford <guybedford@gmail.com>2020-09-23 12:43:34 -0700
committerGitHub <noreply@github.com>2020-09-23 12:43:34 -0700
commitcb705105367c53768a1b45514894251d0e14a1f3 (patch)
treec3a70ad846341abf943805f6f69ef0a3dab78dc1
parentafd33a731718041fc722e423d37d6506de09d720 (diff)
downloadnode-new-doc-conditions-constraint.tar.gz
fixup lint errorsdoc-conditions-constraint
-rw-r--r--doc/api/packages.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/api/packages.md b/doc/api/packages.md
index 17fdf4ede6..737e777550 100644
--- a/doc/api/packages.md
+++ b/doc/api/packages.md
@@ -367,11 +367,12 @@ Node.js supports the following conditions out of the box:
`import()`, or via any top-level import or resolve operation by the
ECMAScript module loader. Applies regardless of the module format of the
target file. _Always mutually exclusive with `"require"`._
-* `"require"` - matched when the package is loaded via `require()`.
- The referenced file should be loadable with `require()` although the condition
- will be matched regardless of the module format of the target file. Expected formats
- include CommonJS, JSON, and native addons but not ES modules as `require()`
- doesn't support them. _Always mutually exclusive with `"import"`._
+* `"require"` - matched when the package is loaded via `require()`. The
+ referenced file should be loadable with `require()` although the condition
+ will be matched regardless of the module format of the target file. Expected
+ formats include CommonJS, JSON, and native addons but not ES modules as
+ `require()` doesn't support them. _Always mutually exclusive with
+ `"import"`._
* `"node"` - matched for any Node.js environment. Can be a CommonJS or ES
module file. _This condition should always come after `"import"` or
`"require"`._