Skip to content

Commit

Permalink
fix(build): fix __DEV__ flag replacement edge case
Browse files Browse the repository at this point in the history
close #8353
  • Loading branch information
yyx990803 committed May 18, 2023
1 parent d621d4c commit 8b7c04b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')`
})
}

Expand Down

0 comments on commit 8b7c04b

Please sign in to comment.