Closed howells closed 3 years ago
next-unused doesn't consider the baseUrl
property yet. So if your import paths are absolute (import X from 'components/x'
) you'll have to treat it as an alias:
{
"debug": true,
"alias": {
"components": "components/"
}
Let me know if that works.
@pacocoursey perfect! Thanks a lot, super useful tool
Hi! It seems the script reports everything as being unused in my project, using the following config:
[lists all 72 files in the directories]
I have this set in jsconfig, if that might make a difference, but otherwise everything is pretty normally set up: