fix: update js concatenation logic to bundle scripts.rjs into minfile regardless of build environment

The slowdown is fairly insignificant (< .1s), and the only change is the minified file is identical across environments, which is better from a debugging standpoint
v1.18.x
Julian Lam 4 years ago
parent 1d77572117
commit 8ff07bc196

@ -312,7 +312,7 @@ async function getBundleScriptList(target) {
let scripts = JS.scripts.base;
if (target === 'client' && process.env.NODE_ENV !== 'development') {
if (target === 'client') {
scripts = scripts.concat(JS.scripts.rjs);
} else if (target === 'acp') {
scripts = scripts.concat(JS.scripts.admin);

Loading…
Cancel
Save