]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(build): fix dev flag replacement in esm-bundler builds
authorEvan You <yyx990803@gmail.com>
Sun, 5 Feb 2023 05:26:01 +0000 (13:26 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 05:26:01 +0000 (13:26 +0800)
rollup.config.js

index e674459c22f9ae35bac33b8de843f241bf941d4b..f6ca48dd2669fb7edc69ff6aea97d065c5f41d2d 100644 (file)
@@ -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'`
       })
     }