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
Next Next commit
doc: endorse "source" and "deno" conditions
  • Loading branch information
guybedford authored Nov 3, 2021
commit 8b3bf213323de2283226b718f4c53b8678cbc306
7 changes: 5 additions & 2 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -612,16 +612,19 @@ The following condition definitions are currently endorsed by Node.js:
* `"browser"` - any environment which implements a standard subset of global
browser APIs available from JavaScript in web browsers, including the DOM
APIs.
* `"deno"` - indicates a variation for the Deno platform.
Comment thread
guybedford marked this conversation as resolved.
* `"development"` - can be used to define a development-only environment
entry point. _Must always be mutually exclusive with `"production"`._
* `"production"` - can be used to define a production environment entry
point. _Must always be mutually exclusive with `"development"`._
* `"source"` - indicates the original .js source file without minification
Comment thread
guybedford marked this conversation as resolved.
Outdated
or bundling optimizations, useful for development and debugging workflows.
Comment thread
guybedford marked this conversation as resolved.
Outdated

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

Platform specific conditions such as `"deno"`, `"electron"`, or `"react-native"`
may be used, but while there remain no implementation or integration intent
Platform specific conditions such as `"electron"`, or `"react-native"` may
Comment thread
guybedford marked this conversation as resolved.
Outdated
be used, but while there remain no implementation or integration intent
from these platforms, the above are not explicitly endorsed by Node.js.
Comment thread
guybedford marked this conversation as resolved.
Outdated
Comment thread
guybedford marked this conversation as resolved.

New conditions definitions may be added to this list by creating a pull request
Expand Down