build: disable live external bindings for cjs build

This commit is contained in:
Evan You 2019-11-06 15:47:01 -05:00
parent 3ec63dbee1
commit f8e7fadaae

View File

@ -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)