فهرست منبع

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

close #8312
丶远方 2 سال پیش
والد
کامیت
003836f90e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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')`
       })
     }