- Move renderer files to src/renderer/src/ (electron-vite standard) - Move index.html to src/renderer/ - Remove root: '.' config that broke HMR - Use ELECTRON_RENDERER_URL instead of VITE_DEV_SERVER_URL - Update tsconfig paths for new structure This fixes hot module replacement not working after the monorepo restructure. The previous non-standard directory layout with root: '.' caused electron-vite's HMR to fail silently. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
887 B
JSON
31 lines
887 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/renderer/src/*"],
|
|
"@multica/ui/*": ["../../packages/ui/src/*"],
|
|
"@multica/store/*": ["../../packages/store/src/*"]
|
|
},
|
|
|
|
/* Linting - disabled for external imports from ../../src */
|
|
"strict": true,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": ["src", "electron"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
}
|