From 5851eaa9339364d41860a277a99f2352de2a3834 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 5 Feb 2023 13:26:01 +0800 Subject: [PATCH] fix(build): fix dev flag replacement in esm-bundler builds --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index e674459c22f..f6ca48dd266 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -192,7 +192,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'` }) }