From: 丶远方 Date: Wed, 17 May 2023 00:57:19 +0000 (+0800) Subject: fix(build): fix dev flag replacement in esm-builder builds (#8314) X-Git-Tag: v3.3.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=003836f90e1f00ebd04b77ec07ccfa4e649a2ff4;p=thirdparty%2Fvuejs%2Fcore.git fix(build): fix dev flag replacement in esm-builder builds (#8314) close #8312 --- diff --git a/rollup.config.js b/rollup.config.js index 0b5ffa3b06..cfe334694d 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')` }) }