https://stackblitz.com/edit/github-bquuj6
Knip does not detect used exports that are used via namespace imports in Vue SFCs with script setup.
In this example, Bar.bar is reported as unused, while Baz.baz is reported as used. Of course, the same import and usage of Bar in a TS file would be reported as used.
<script setup lang="ts">
import * as Bar from 'Bar.ts';
import { baz } from 'Baz.ts';
Bar.bar();
baz();
</script>
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too