Skip to content

module: development and production exports conditions

Rodrigo Muino Tomonari requested to merge github/fork/guybedford/node-env into master

This supports two new conditions in conditional exports - "development" and "production". By default the "development" condition is always matched unless process.env.NODE_ENV is set to "production" in which case the "production" condition is matched.

By making this implementation simply a specification of what the standard in the ecosystem already is, the hope is that this will provide a simple to adopt incremental approach to the problem of production and development condition branching.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading