feat(cli): refactor embedded assets with Bun-specific and stub implementations

Split embedded assets loading into runtime-specific variants using package.json imports field. Bun-compiled binaries use the full implementation with file assets, while stub fallback provides clear error for non-Bun runtimes.
This commit is contained in:
weishu
2025-12-20 23:46:02 +08:00
parent be655f9fcf
commit cf04937355
6 changed files with 21 additions and 4 deletions
+2
View File
@@ -8,4 +8,6 @@ declare module 'bun:bundle' {
| 'HAPI_TARGET_WIN32_X64'
| 'HAPI_TARGET_WIN32_ARM64';
}
export function feature(name: Registry['features']): boolean;
}