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

This commit is contained in:
Evan You 2023-02-05 13:26:01 +08:00 committed by GitHub
parent 85f4d8ccb9
commit 5851eaa933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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