webpro-nl / knip

✂️ Find unused files, dependencies and exports in your JavaScript and TypeScript projects. Knip it before you ship it!
https://knip.dev
ISC License
7.09k stars 179 forks source link

🐛 Default exports are not tracked #860

Closed bartekczyz closed 2 days ago

bartekczyz commented 2 days ago

Prerequisites

Reproduction url

https://github.com/bartekczyz/knip-default-exports-repro

Reproduction access

Description of the issue

First of all, thank you for this amazing library ⭐

This is actually a continuation of https://github.com/webpro-nl/knip/issues/721

I want to find all usages of particular files in my project. It works fine if file exports named objects, but it won't track default exports. Sadly, our codebase is huge and I can't refactor so that it uses named exports everywhere.

webpro commented 2 days ago

Thanks for the report @bartekczyz! Will release shortly.

webpro commented 2 days ago

:rocket: This issue has been resolved in v5.38.3. See Release 5.38.3 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

bartekczyz commented 16 hours ago

Wow, that was fast! 😱 Thanks @webpro!