Chrome is experimenting with two new features that I firmly believe will completely change how we bundle and deploy JavaScript applications in the future (for the better):
Built-in Modules and Import Maps.
The first built-in module we’re shipping (behind the experimental web platform features flag) is called KV Storage. It’s an asynchronous key/value storage API built on top of IndexedDB.
In this article on developers.google.com I introduce these new APIs and show you how you can use them in your applications. I’ve also built a demo application that shows how you can actually deploy these features on the web today (via this origin trial) while still providing fallbacks so they work in all browsers.