Skip to content

Commit

Permalink
build: disable live external bindings for cjs build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 6, 2019
1 parent 3ec63db commit f8e7fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rollup.config.js
Expand Up @@ -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)
Expand Down

0 comments on commit f8e7fad

Please sign in to comment.