From 003836f90e1f00ebd04b77ec07ccfa4e649a2ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Wed, 17 May 2023 08:57:19 +0800 Subject: [PATCH] fix(build): fix dev flag replacement in esm-builder builds (#8314) close #8312 --- 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')` }) }