]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): fix dev flag replacement in esm-builder builds (#8314)
author丶远方 <yangpanteng@gmail.com>
Wed, 17 May 2023 00:57:19 +0000 (08:57 +0800)
committerGitHub <noreply@github.com>
Wed, 17 May 2023 00:57:19 +0000 (08:57 +0800)
close #8312

rollup.config.js

index 0b5ffa3b06736f9ca3539fcb41784a0ca9cd91f3..cfe334694dee9e58f8758e63f27635dde5dcf8ca 100644 (file)
@@ -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')`
       })
     }