Closed tabansal closed 5 years ago
Could this be solved via #26 ?
I think this is fixed in master, via this PR:
https://github.com/pzavolinsky/ts-unused-exports/pull/44
Is released (v 2.1.0)
Closing, as believe this is fixed.
@tabansal Does absolute paths seem to work for you? If so could you share your minimal tsconfig?
@mindaugasnakrosis there is an example here:
https://github.com/pzavolinsky/ts-unused-exports/blob/master/example/with-paths/math.ts
If it is not working - can you please share a simple example of the TypeScript file and also the tsconfig.json
?
The full example is here, with tsconfig.json
:
https://github.com/pzavolinsky/ts-unused-exports/tree/master/example/with-paths
I'm using absolute paths to load Components and other files in my project.
Something like
import App, { mapDispatchToProps, mapStateToProps } from "Components/App";
So when I run ts-unused-export it gives all exported members as un-used. Although I'm importing them.
Can you please check on priority basis?