Browse Source

fix(build): fix __DEV__ flag replacement edge case

close #8353
pull/8365/head
Evan You 2 years ago
parent
commit
8b7c04b18f
  1. 2
      rollup.config.js

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

Loading…
Cancel
Save