From 8ff07bc196acd5677f139457480b4759bed365d6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 27 Jan 2021 09:39:19 -0500 Subject: [PATCH] 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 --- src/meta/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/js.js b/src/meta/js.js index d4093b3a90..7e093890f7 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -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);