File SystemRuntime & Debugging
Define and replace static globals & constants
The --define flag declares statically-analyzable constants and globals. It replaces all usages of an identifier or property in a JavaScript or TypeScript file
Build-time constants with --define
Pass --define to bun build or bun build --compile to inject build-time constants into your application. Use it to embed metadata like build versions,
Install and run Bun in GitHub Actions
Use the official setup-bun GitHub Action to install bun in your GitHub Actions runner.