fix(build): fix dev flag replacement in esm-builder builds (#8314)
close #8312
This commit is contained in:
parent
a374d7e6ed
commit
003836f90e
|
@ -193,7 +193,7 @@ function createConfig(format, output, plugins = []) {
|
||||||
if (isBundlerESMBuild) {
|
if (isBundlerESMBuild) {
|
||||||
Object.assign(replacements, {
|
Object.assign(replacements, {
|
||||||
// preserve to be handled by bundlers
|
// preserve to be handled by bundlers
|
||||||
__DEV__: `process.env.NODE_ENV !== 'production'`
|
__DEV__: `(process.env.NODE_ENV !== 'production')`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue