This commit is contained in:
nirholas
2026-03-31 10:19:42 +00:00
parent 261739a6c2
commit 24d8621c8e
17 changed files with 2681 additions and 10 deletions

9
src/types/bun-bundle.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
// Type stubs for bun:bundle feature flags used throughout the codebase.
// In a real Bun build these are provided by the bundler and eliminated at compile time.
declare module 'bun:bundle' {
/**
* Returns true if the named feature flag is enabled at build time.
* Bun uses this for dead-code elimination — disabled branches are stripped entirely.
*/
export function feature(name: string): boolean
}