Correctly replace 'process.env.NODE_ENV' (#4787)

master
Lucas Duailibe 2018-07-01 11:22:40 -03:00 committed by GitHub
parent 94d928b9eb
commit 3f91d6427d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ async function run(params) {
await execa("rm", ["-rf", ".cache"]);
}
const bundleCache = new Cache(".cache/", "v1");
const bundleCache = new Cache(".cache/", "v2");
await bundleCache.load();
console.log(chalk.inverse(" Building packages "));

View File

@ -94,7 +94,7 @@ function getRollupConfig(bundle) {
};
const replaceStrings = {
"proces.env.NODE_ENV": JSON.stringify("production")
"process.env.NODE_ENV": JSON.stringify("production")
};
if (bundle.target === "universal") {
// We can't reference `process` in UMD bundles and this is