4 Commits
Author SHA1 Message Date
chenqgandClaude Opus 4.6 b9273538ca fix: 添加 ignoreDCEAnnotations 修复 Bun 1.3.x barrel 优化导致的运行时崩溃
Bun 1.3.10+ 对 sideEffects:false 的包(lodash-es, @growthbook/growthbook)
启用了自动 barrel 优化,过度 tree-shaking 导致 default export 声明被移除,
运行时报 ReferenceError: default169 is not defined。
设置 ignoreDCEAnnotations: true 禁用此行为。

Ref: https://github.com/oven-sh/bun/issues/27709

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-03 10:41:00 +08:00
chenqgandClaude Opus 4.6 c901db8159 fix: 补全 stub 包列表并增强命名导出生成,修复跨平台构建和运行时错误
- 向 STUB_NPM_PACKAGES 添加 9 个缺失的包(@ant/claude-for-chrome-mcp,
  @anthropic-ai/sandbox-runtime, @anthropic-ai/mcpb, bedrock/foundry/vertex SDK,
  @aws-sdk/client-sts, client-bedrock, client-bedrock-runtime)
- 增强 stub-npm onLoad:自动扫描 src/ 源文件提取命名导入,动态生成匹配导出
- 将 stub 导出值从 undefined 改为 Proxy 对象,防止模块顶层属性访问崩溃
- 同步更新 stub-missing handler 使用相同的 Proxy 策略

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-04-03 09:51:39 +08:00
chenqg d18fe23391 补充dist/* 2026-04-01 18:08:41 +08:00
chenqg f6f2b2a5e6 first commit 2026-04-01 18:04:13 +08:00