mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-27 22:51:43 +00:00
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.
9 lines
244 B
TypeScript
9 lines
244 B
TypeScript
export interface EmbeddedAsset {
|
|
relativePath: string;
|
|
sourcePath: string;
|
|
}
|
|
|
|
export async function loadEmbeddedAssets(): Promise<EmbeddedAsset[]> {
|
|
throw new Error('Embedded assets are only available in Bun-compiled binaries.');
|
|
}
|