Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update --conditions flag notes
  • Loading branch information
guybedford authored Jan 10, 2021
commit 502986c2935e5ce7456eb91cbadfbeb501dafeda
9 changes: 5 additions & 4 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,12 @@ The following condition definitions are currently endorsed by Node.js:
global browser APIs available from JS in web browsers, including the DOM
APIs.
* `"development"` - can be used to define a development-only environment
entry point. Enabled via the `--conditions=development` flag to Node.js.
_Must always be mutually exclusive with `"production"`._
entry point. _Must always be mutually exclusive with `"production"`._
* `"production"` - can be used to define a production environment entry
point. Enabled via the `--conditions=production` flag to Node.js.
_Must always be mutually exclusive with `"development"`._
point. _Must always be mutually exclusive with `"development"`._

The above user conditions can be enabled in Node.js via the [`--conditions`
flag](#packages_resolving_user_conditions).

Other condition strings are unknown to Node.js and thus ignored by default.
Runtimes or tools other than Node.js can use them at their discretion.
Expand Down