namespace
bun.Build
namespace Build
- type Architecture = 'x64' | 'arm64' | 'aarch64'
- type CompileTarget =| `bun-darwin-${Architecture}`| `bun-darwin-${Architecture}-${SIMD}`| `bun-linux-${Architecture}`| `bun-linux-${Architecture}-${Libc}`| `bun-linux-${Architecture}-${SIMD}`| `bun-linux-${Architecture}-${SIMD}-${Libc}`| `bun-windows-${Architecture}`| `bun-windows-x64-${SIMD}`
- type Libc = 'glibc' | 'musl'
- type SIMD = 'baseline' | 'modern'
- type TrimFeature =| 'cli'| 'lint'| 'fmt'| 'check'| 'install'| 'aot'| 'repl'| 'create'| 'upgrade'| 'run'| 'spawn'| 'process-kill'| 'process-report'| 'dialogs'| 'ipc'| 'native-code'| 'jit'| 'interpreter'| 'bundler'| 'test'| 'inspector'| 'profiler'| 'source-maps'| 'image'| 'archive'| 'sqlite'| 'sql'| 'redis'| 's3'| 'html-rewriter'| 'ffi'| 'native-addons'| 'webassembly'| 'shell'| 'webview'| 'fetch'| 'serve'| 'sockets'| 'dns'| 'http2'| 'http3'| 'websocket'| 'udp'| 'worker'| 'node-vm'| 'node-crypto'| 'web-crypto'| 'password'| 'brotli'| 'intl'| 'intl-segmenter'| 'temporal'| 'bun-jsc'| 'plugin'| 'fs-router'| 'terminal'| 'cron'| 'secrets'| 'markdown'| 'yaml'| 'toml'| 'json5'| 'jsonc'| 'jsonl'| 'xml'| 'glob'| 'semver'| 'color'| 'cookie'| 'csrf'| 'hash'| 'crypto-hasher'| 'url-pattern'
The name of a feature of Bun that
compile.trim.allowkeeps in an executable andcompile.trim.removetakes out of it.