pzavolinsky / ts-unused-exports

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

Fix the default export error for esm module. #311

Open Pnlvfx opened 3 weeks ago

Pnlvfx commented 3 weeks ago

This commits fix the default export error encountered when using esm module. It has a breaking change as is change the import from default to named export. I've tested it with both esm and cjs and it work. I hope you agree to this breaking change, but it's the only way that I've found to fix this issue