fix(web): default react builds to production when NODE_ENV is not provided (#7727)

ISSUES CLOSED: #7410
This commit is contained in:
Nicholas Cunningham 2021-11-15 12:30:39 -07:00 committed by GitHub
parent 3d54a7961a
commit 6e801a1e9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,9 @@ export async function* run(
`Node version ${nodeVersion} is not supported. Supported range is "${supportedRange.raw}".`
);
}
process.env.NODE_ENV ||= 'production';
const metadata = context.workspace.projects[context.projectName];
if (!options.buildLibsFromSource && context.targetName) {