build: disable live external bindings for cjs build
This commit is contained in:
parent
3ec63dbee1
commit
f8e7fadaae
@ -72,6 +72,8 @@ if (process.env.NODE_ENV === 'production') {
|
||||
export default packageConfigs
|
||||
|
||||
function createConfig(output, plugins = []) {
|
||||
output.externalLiveBindings = false
|
||||
|
||||
const isProductionBuild =
|
||||
process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file)
|
||||
const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
|
||||
|
Loading…
Reference in New Issue
Block a user