pzavolinsky / ts-unused-exports

ts-unused-exports finds unused exported symbols in your Typescript project
MIT License
749 stars 49 forks source link

Support imports via CommonJS require #10

Open OliverJAsh opened 7 years ago

OliverJAsh commented 7 years ago

TypeScript will recognise require function calls as module imports when using the checkJs option:

https://github.com/Microsoft/TypeScript/wiki/Type-Checking-JavaScript-Files#commonjs-module-input-support

Currently, ts-unused-exports will only extract imports from ES Module statements. Could we add support for require?

retyui commented 1 year ago

any updates?

mrseanryan commented 1 year ago

any updates?

hi @retyui Im not planning to pick this up any time soon- if you really want this feature you could have a go at opening a PR

thanks for the interest