From: Evan You Date: Thu, 18 May 2023 08:00:35 +0000 (+0800) Subject: fix(build): fix __DEV__ flag replacement edge case X-Git-Tag: v3.3.4~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b7c04b18f73aad9a08dd57eba90101b5b2aef28;p=thirdparty%2Fvuejs%2Fcore.git fix(build): fix __DEV__ flag replacement edge case close #8353 --- diff --git a/rollup.config.js b/rollup.config.js index cfe334694d..7050ba437e 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')` }) }