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

close #8312
This commit is contained in:
丶远方 2023-05-17 08:57:19 +08:00 committed by GitHub
parent a374d7e6ed
commit 003836f90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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