Explorar o código

fix(build): fix __DEV__ flag replacement edge case

close #8353
Evan You %!s(int64=2) %!d(string=hai) anos
pai
achega
8b7c04b18f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rollup.config.js

+ 1 - 1
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')`
       })
     }