vite-plugin-long-term-cache-import-map
JSON →A Vite plugin enabling long-term caching of static assets (JS, CSS) using import maps. Version 0.2.6, actively maintained with weekly releases. Key differentiators: it generates and patches import maps to decouple file hashes from URLs, allowing aggressive caching without cache invalidation. Unlike standard Vite hashing, this plugin splits import map management into generator and patcher plugins, giving fine-grained control over entry points and chunk names. Useful for projects needing maximal cache hit rates, especially with large vendor chunks like monaco-editor.