Skip to content

快速接入 (TUICallKit) uni-app(小程序) ,分包模式下占用大量主包 #438

@haliuhei

Description

@haliuhei

参考链接为官方提供的两个链接:
1.快速接入:https://cloud.tencent.com/document/product/647/78912
2.体积优化:https://cloud.tencent.com/developer/article/2352663

操作流程:
1.首先以文档1方式接入(分包接入流程),可以正常运行,但是主包占用在1M左右,占用略大
Image
2.根据文档所示执行 体积优化文档 流程,参考为文档2
Image
优化后体积如下,并不像文档1中描述的,约占用 249 kb主包体积:
Image

考虑到后续可能TUICallKit和TUIKit 需要同时接入,这个主包占用很难融入到当前项目中。

运行环境:
windows
Hbuilder x 4.75 (当前最新稳定版) 创建默认模板 vue3
微信开发者工具 1.06.2504010 win32-x64 (当前最新稳定版)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions