Web dependencies are broken. Can we fix them? • Lea Verou

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

JavaScript dependency management on the web is fundamentally broken compared to other ecosystems. While Node.js and other platforms treat dependencies as first-class citizens, web developers must choose between fragile workarounds: deploying node_modules directly (security risk), using CDNs (reliability issues), or adopting bundlers for basic needs. Import maps exist but require HTML templating, manual mapping of every transitive dependency, and still need URLs to resolve to. The ecosystem has normalized this complexity, but it harms both newcomers and the platform's architecture. Proposed solutions include external import maps, HTTP header-based resolution, treating specifiers as a URL type, and server-side dependency resolution to make web dependencies truly first-class without requiring bundlers.

21m read timeFrom lea.verou.me
Post cover image
Table of contents
Dependencies without bundlers, today?Dependencies that use dependenciesBut won’t import maps solve all our problems?Are bundlers the lesser evil?Where do we go from here?Enjoyed this post?
4 Comments

Sort: