arethetypeswrong / arethetypeswrong.github.io

Tool for analyzing TypeScript types of npm packages
https://arethetypeswrong.github.io
MIT License
1.12k stars 38 forks source link

Understand basic UMD modules #146

Open andrewbranch opened 6 months ago

andrewbranch commented 6 months ago

https://unpkg.com/vue-chartkick@1.1.0/dist/vue-chartkick.js

Tobbe commented 6 months ago

Support for UMD would be great!

I tried with this https://arethetypeswrong.github.io/?p=%40tobbe.dev%2Frsc-test%400.0.4 and I get

image

Is this the expected output for a ESM+UMD package?

UPDATE:

I made some changes to my packaging setup, and released a new version, 0.0.5. https://arethetypeswrong.github.io/?p=%40tobbe.dev%2Frsc-test%400.0.5

image

So that looks better. But it would still be nice to have UMD support or, at least in the meantime, know what the expected output would be for attw when it encounters an UMD package

BTW – and I should have said this first – Thanks a lot for this tool! It's very helpful for the whole JS ecosystem! 🙂