-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Expand file tree
/
Copy pathtsconfig.bundle.json
More file actions
29 lines (29 loc) · 1.23 KB
/
tsconfig.bundle.json
File metadata and controls
29 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
// Bundler-only tsconfig — used by `Bun.build` in scripts/build-mobile-bundle.mjs.
//
// The agent's main `tsconfig.json` aliases `react`, `react/jsx-runtime`,
// `react/jsx-dev-runtime`, and `react-dom` to `@types/*` `.d.ts` files so
// that `tsc --noEmit` can typecheck React JSX inside agent source. Bun.build
// also reads `tsconfig.json#paths` by default, then tries to load those
// `.d.ts` files as JavaScript — which fails on `export as namespace React`.
//
// Bun.build is pointed at this file via the `tsconfig` option so the React
// aliases stay invisible to the bundler. We deliberately do NOT extend the
// main tsconfig — `tsc` merges `paths` from extends-chains in surprising
// ways and the only contract we care about here is "no React aliases visible
// to Bun.build". Workspace `@elizaos/*` resolution is handled by the
// dedupe / capacitor / src-fallback plugins in build-mobile-bundle.mjs,
// not via paths.
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"strict": false,
"strictNullChecks": true,
"skipLibCheck": true,
"allowImportingTsExtensions": true,
"noEmit": true,
"paths": {}
}
}