wulie88 commented on issue #3305:
URL: https://github.com/apache/incubator-weex/issues/3305#issuecomment-739131684


   > 直接在webpack中设备external,观察到打包出来的boundle的体积还是一样大,没变化
   
   - 如果你没有手动引用Vue,`weex-loader`不会引入Vue,是正确的;
   - 如果你手动引用Vue,如当EventBus,`weex-loader`不知道外部有Vue会引入Vue,是错误的。
   
   你可以在代码中加入如下几行测试,注意打包后的代码内容及文件尺寸。
   
   ```
   import Vue from 'vue';
   export default new Vue();
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to