Correctly replace 'process.env.NODE_ENV' (#4787)
parent
94d928b9eb
commit
3f91d6427d
|
@ -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 "));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue