Prerequisites
Reproduction url
https://github.com/arnolicious/knip-compiler-types-repro
Reproduction access
Description of the issue
When using knip with the "real" svelte compiler, knip fails to detect types that are imported in svelte files.
When not using the "real" svelte compiler, knip detects the types just fine, but then fails to detect svelte specific features, such as dynamic component imports.
I assume the solution is to somehow configure / patch the compile step to also include types, however I wouldn't really know where to start.
Unfortunately in this state, this makes it very difficult to use knip in a large sveltekit project
Prerequisites
Reproduction url
https://github.com/arnolicious/knip-compiler-types-repro
Reproduction access
Description of the issue
When using knip with the "real" svelte compiler, knip fails to detect types that are imported in svelte files.
When not using the "real" svelte compiler, knip detects the types just fine, but then fails to detect svelte specific features, such as dynamic component imports.
I assume the solution is to somehow configure / patch the compile step to also include types, however I wouldn't really know where to start.
Unfortunately in this state, this makes it very difficult to use knip in a large sveltekit project