quilt icon indicating copy to clipboard operation
quilt copied to clipboard

Use import maps where supported to reduce cache-busting effect of native ESModule imports

Open lemonmade opened this issue 2 years ago • 2 comments

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap

The main question is: how to do this for async modules, without needing to include the manifest of every async module for each server render...

lemonmade avatar Jan 03 '24 03:01 lemonmade

  • https://github.com/rails/importmap-rails
  • https://github.com/guybedford/es-module-shims

lemonmade avatar Aug 13 '24 03:08 lemonmade

AI thread for a Rollup plugin to generate this automatically in Rollup: https://claude.ai/chat/3b4e6173-e7aa-4134-97c2-5b724f331ec3

lemonmade avatar Aug 13 '24 04:08 lemonmade