Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsconfig.json > compilerOptions.paths - unsupported #80

Open
rufusnguyen opened this issue Dec 4, 2024 · 2 comments
Open

tsconfig.json > compilerOptions.paths - unsupported #80

rufusnguyen opened this issue Dec 4, 2024 · 2 comments

Comments

@rufusnguyen
Copy link

rufusnguyen commented Dec 4, 2024

We used cli and set the correct tsconfig.json file to --project. In our tsconfig.json > compilerOptions.paths, we add several paths as short aliases in our ts/js files.
i.e:
tsconfig.json
"paths": { "@/*": ["./src/*"] }

In our component:
import { functionA } from '@/utils'

ts-remove-unused seems not to support tsconfig.json > compilerOptions.paths because my CLI command deletes all the files/lines of code using compilerOptions.paths (i.e: above functionA)

The lib is great and it would be greater to support compilerOptions.paths.
Thank you

@kazushisan
Copy link
Contributor

I will look into the issue!

@kazushisan
Copy link
Contributor

Can you provide a minimal reproduction repo since I can't reproduce the issue? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants