Hacker News new | ask | show | jobs
by timostamm 1748 days ago
Tree shaking works well when you have ESM imports / exports.

jquery is/was usually loaded into the global scope. There is no standard way for tree shakers to deduct which parts of the library you are using.

Yes, browser APIs have matured significantly since jquery was new and such a library doesn't add much value anymore.

I agree it would be great if the README gave a bit more background. Whoever is looking to migrate away from jquery will be aware of the background though (and will likely appreciate this tool).