I'm wondering if there's a way to excluded the getServerSideProps and default exports for Next.js projects with its file based router.
You can of course exclude the whole file with something like ts-unused-exports tsconfig.json | grep -v getServerSideProps but this will miss any other unused exports from the files as well.
Hi there, thanks for the work on this!
I'm wondering if there's a way to excluded the
getServerSideProps
anddefault
exports for Next.js projects with its file based router.You can of course exclude the whole file with something like
ts-unused-exports tsconfig.json | grep -v getServerSideProps
but this will miss any other unused exports from the files as well.