chore: make bundle fully self-contained, no external imports #270
Reference in New Issue
Block a user
Delete Branch "chore/no-external-bundle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Bundle build 不再使用
--external,所有@uncaged/*runtime 依赖全部打包进.esm.js。Why
Bundle 应该完全自包含,只要 Node/Bun 版本不变,行为就稳定。
Changes
workspace.ts— 删除uncagedWorkflowExternals()和external参数bundle-validator.ts— 收紧 import 校验,只允许 Node built-insskill.ts— 更新文档Follow-up
ensure-uncaged-workflow-symlink.ts现在是死代码,后续可清理。LGTM ✅ 干净的简化——bundle 完全自包含,validator 收紧到只允许 node:* built-ins,逻辑一致。