From a330153054279975a27d97f61a5f9508f465f8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Mon, 15 May 2023 12:05:50 +0800 Subject: [PATCH] fix(build): fix dev flag replacement in esm-builder builds --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index 0b5ffa3b067..cfe334694de 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -193,7 +193,7 @@ function createConfig(format, output, plugins = []) { if (isBundlerESMBuild) { Object.assign(replacements, { // preserve to be handled by bundlers - __DEV__: `process.env.NODE_ENV !== 'production'` + __DEV__: `(process.env.NODE_ENV !== 'production')` }) }