Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行打包后 vue 以及ui组件 都被全部引入 没有按需引入 #8203

Closed
allen-wiki opened this issue Dec 4, 2020 · 1 comment
Closed
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@allen-wiki
Copy link

相关平台

微信小程序

小程序基础库: 2.14.0
使用框架: Vue 3

复现步骤

taro init 一个新的项目 安装 taro-ui-vue3 ,然后使用组件 ,再安装 webpack-bundle-analyzer 分析文件资源, 发现ui组件 以及vue核心代码被全部加载 没有按需引入

期望结果

希望按照引入的资源进行打包

实际结果

引入的资源被全部打包

环境信息

� Taro v3.0.17


  Taro CLI 3.0.17 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\Allen\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Dec 4, 2020
@allen-wiki
Copy link
Author

引入esm文件 按需导入还是无效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants