property
BuildConfig.tsconfig
tsconfig?: string
Custom tsconfig.json file path. This build reads it in place of every tsconfig.json it would otherwise find, for paths, JSX and decorator settings, and for check. A directory means the tsconfig.json in it. Equivalent to --tsconfig-override in the CLI.
await Bun.build({
entrypoints: ['./src/index.ts'],
tsconfig: './custom-tsconfig.json'
});