- Replace Babel with SWC for 70-80% faster TypeScript compilation - Add filesystem caching for 90% faster subsequent builds - Update TypeScript config for better performance: - Upgrade target to ES2020 - Use bundler moduleResolution - Enable incremental compilation - Add .tsbuildinfo and webpack cache to .gitignore Build time improved from ~5-10s to ~1.7s
19 lines
500 B
JSON
19 lines
500 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2020",
|
|
"lib": ["es2020", "dom"],
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"jsx": "react-jsx",
|
|
"strict": false,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"incremental": true,
|
|
"tsBuildInfoFile": ".tsbuildinfo",
|
|
"types": ["node"]
|
|
},
|
|
"include": ["frontend/**/*"],
|
|
"exclude": ["node_modules", "dist", "backend"]
|
|
}
|