Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

tsconfig.json > compilerOptions.paths - unsupported #80

@rufusnguyen

Description

@rufusnguyen

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions