Ver Fonte

build: disable live external bindings for cjs build

Evan You há 6 anos atrás
pai
commit
f8e7fadaae
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      rollup.config.js

+ 2 - 0
rollup.config.js

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