wooorm / xdm

Just a *really* good MDX compiler. No runtime. With esbuild, Rollup, and webpack plugins
http://wooorm.com/xdm/
MIT License
593 stars 18 forks source link

Replace `got` w/ `node-fetch` #110

Closed jensmeindertsma closed 2 years ago

jensmeindertsma commented 2 years ago

This pull request fixes #109. It replaces the got package which is only used once, with an alternative ( node-fetch, which against intuitions does not depend on @types/node where got did ).

This means that there are now not any issues when running tsc in a Cloudflare Workers project which uses xdm. This came up specifically while building a Remix application, as @remix-run/dev depends on xdm.

I made sure to replicate the existing caching set up, as that is not included in node-fetch.

Thanks for this awesome project 🙏

wooorm commented 2 years ago

Can you rebase? I fixed the unrelated error on main

wooorm commented 2 years ago

Released, thanks!