Configure TypeScript to use ES2020 modules with bundler resolution to work properly with esbuild. Enable source maps for better debugging and update module resolution strategy for the new build pipeline. Changes: - Set module to ES2020 (was "none") - Add moduleResolution: "bundler" for esbuild compatibility - Enable sourceMap: true for development debugging - These changes align TypeScript compilation with the esbuild bundler setup
22 lines
549 B
JSON
22 lines
549 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ES2020",
|
|
"lib": ["ES2020", "DOM"],
|
|
"outDir": "./web/static",
|
|
"rootDir": "./web/src",
|
|
"moduleResolution": "bundler",
|
|
"skipLibCheck": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"declaration": false,
|
|
"sourceMap": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
},
|
|
"include": ["web/src/**/*.ts"],
|
|
"exclude": ["node_modules"],
|
|
}
|