Tencent-RTC / Tencent-RTC/TUICallKit
快速接入 (TUICallKit) uni-app(小程序) ,分包模式下占用大量主包
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 249
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
参考链接为官方提供的两个链接:
1.快速接入:https://cloud.tencent.com/document/product/647/78912
2.体积优化:https://cloud.tencent.com/developer/article/2352663
操作流程:
1.首先以文档1方式接入(分包接入流程),可以正常运行,但是主包占用在1M左右,占用略大
2.根据文档所示执行 体积优化文档 流程,参考为文档2
优化后体积如下,并不像文档1中描述的,约占用 249 kb主包体积:
考虑到后续可能TUICallKit和TUIKit 需要同时接入,这个主包占用很难融入到当前项目中。
运行环境:
windows
Hbuilder x 4.75 (当前最新稳定版) 创建默认模板 vue3
微信开发者工具 1.06.2504010 win32-x64 (当前最新稳定版)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official quick-start and size-optimization links, then reproduce the reported package sizes in HBuilder X 4.75 using a default Vue 3 uni-app project and WeChat Developer Tools 1.06.2504010. Compare the split-package setup with the documented result of about 249 KB in the main package; done means the discrepancy is fixed or the documentation accurately explains the expected size.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100