Open OliverJAsh opened 7 years ago
TypeScript will recognise require function calls as module imports when using the checkJs option:
require
checkJs
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?
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
TypeScript will recognise
require
function calls as module imports when using thecheckJs
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
?