Find and use a better pattern for excluding things from prod builds #93
Labels
effort: moderate
The issue will probably take a single contributor one or two days of work to resolve.
type: polish
The issue involves making existing functionality more usable.
Currently lines such as
are present all over the code base. If at all possible, a more concise and approachable pattern should be used.
tests: isProd ? undefined : { ... }
would be an example of such a better pattern.As part of this task: Once a better pattern is found, all places in the codebase that currently compare against
process.env.NODE_ENV
should be replaced with that newer pattern.It is a requirement of the pattern that minified production builds (currently created using
nwb build
) must totally exclude development-only branches and must totally excludedocs
andtests
objects from things like wrapped functions where the old pattern is currently used.The text was updated successfully, but these errors were encountered: