Skip to content

优化:合并 btgmeta-bundle 源代码并配置构建 #97

Closed

Description

@Gaubee

背景

当前 src/services/bioforest-sdk/bioforest-chain-bundle.cjs 是从 legacy-apps 复制的预编译文件(约 1MB)。

建议

将 @btgmeta-bundle 源代码合并到 KeyApp 仓库并配置 vite 构建,好处:

  1. 可以 tree-shake 不需要的代码,减少体积
  2. 便于维护和更新
  3. 更好的类型支持

参考

  • 源代码位置:legacy-apps/libs/@btgmeta-bundle/src/
  • 构建配置:legacy-apps/libs/@btgmeta-bundle/vite.config.js
  • 依赖:@bfchain/core 等

相关 PR

Activity

  1. added 2 commits that reference this issue on Dec 23, 2025
    1ff98be
    e9e382f
  2. added a commit that references this issue on Dec 24, 2025
    6138ace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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