Przeglądaj źródła

fix(build): fix dev flag replacement in esm-builder builds (#8314)

close #8312
丶远方 2 lat temu
rodzic
commit
003836f90e
1 zmienionych plików z 1 dodań i 1 usunięć
  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')`
       })
     }