Slice 4 spec review caught: router.test.ts's narrow chrome.* shim triggered 4 TS errors in webpack's ts-loader pass during production builds (partial mocks don't match the full chrome.* type surface). Plan's verbatim test body assumes tests aren't part of the build compile. Add src/**/__tests__/** to tsconfig exclude — tests still compile under Vitest's independent ts pipeline (42/42 passing). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
471 B
JSON
20 lines
471 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "ES2022",
|
|
"moduleResolution": "bundler",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"outDir": "./dist",
|
|
"rootDir": "./src",
|
|
"sourceMap": true,
|
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
"paths": {
|
|
"relicario-wasm": ["./wasm/relicario_wasm.js"]
|
|
},
|
|
"baseUrl": "."
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist", "wasm", "src/**/__tests__/**"]
|
|
}
|