claude-code-best/scripts
claude-code-best dab04af7c9 perf: Vite 构建启用 code splitting,Bun RSS 从 966MB 降至 35MB
Bun/JSC 全量解析单文件大 JS 的 bytecode 和 JIT,17MB 产物导致
RSS 暴涨至 ~1GB(Node/V8 懒解析仅需 ~220MB)。启用代码分割后
Bun 按需加载 chunk,--version RSS 35MB,完整加载 ~500MB。

改动:
- vite.config.ts: 移除 codeSplitting:false,添加 chunkFileNames
- post-build.ts: 遍历 dist/ + dist/chunks/ 所有文件做 Bun patch
- 新建 distRoot.ts 共享工具函数,统一路径定位逻辑
- ripgrep.ts/computerUse/setup.ts/claudeInChrome/setup.ts/updateCCB.ts:
  用 distRoot 替换内联 import.meta.url 路径推算
2026-05-21 16:36:27 +08:00
..
check-bundle-integrity.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
defines.ts chore: 2.4.2 2026-05-11 20:37:53 +08:00
dev-debug.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
dev.ts feat: 实现 Tool Search 基础设施层(CORE_TOOLS 白名单 + TF-IDF 索引 + ExecuteTool + 搜索增强) 2026-05-08 22:29:15 +08:00
dump-prompt.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
post-build.ts perf: Vite 构建启用 code splitting,Bun RSS 从 966MB 降至 35MB 2026-05-21 16:36:27 +08:00
postinstall.cjs style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
probe-local-wiring.ts feat: 注册所有新命令到命令系统和工具注册表 2026-05-09 23:04:39 +08:00
probe-subscription-endpoints.ts fix: 进一步脱敏 probe-subscription-endpoints 日志中的 orgUUID 2026-05-10 13:14:22 +08:00
rcs-ccb.sh chore: 更新构建 feature 的问题 2026-04-19 08:27:25 +08:00
rcs.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
run-parallel.mjs style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
setup-chrome-mcp.mjs style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
smoke-test-commands.ts feat: 注册所有新命令到命令系统和工具注册表 2026-05-09 23:04:39 +08:00
verify-autofix-pr.ts feat: 添加 GitHub 集成命令(issue、share、autofix-pr) 2026-05-09 23:04:23 +08:00
vite-plugin-feature-flags.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
vite-plugin-import-meta-require.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00