The vite resolve.alias (added for the client + coverage runs) does not reach svelte-check, which resolves paths through the generated tsconfig. Declaring $mocks in kit.alias feeds both the generated tsconfig paths and the sveltekit() vite plugin, so editor/type-check resolve it too. Part of #560. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.1 KiB
1.1 KiB