Просмотр исходного кода

fix(build): fix dev flag replacement in esm-bundler builds

Evan You 3 лет назад
Родитель
Сommit
5851eaa933
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      rollup.config.js

+ 1 - 1
rollup.config.js

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