Rollup/Vite plugin for generating import maps for SystemJS or ES module outputs. Current stable version 0.8.0. Designed to work exclusively with Rollup's output plugins, it maps module chunks to URLs in an import map and injects the map into an HTML file. Key differentiators: supports both SystemJS and ES module formats, integrates with Vite's build pipeline. Note: this is a proof-of-concept with limited API surface and no active release cadence.
npm install importmap-pluginVerified import paths — ran on the pinned version, not inferred.
Configures Vite to use importmap-plugin for generating an import map in SystemJS format with external imports enabled.
Move ImportmapPlugin into output.plugins as shown in the quickstart.
Omit [hash] from entryFileNames and chunkFileNames.
Set external: true only when format is 'system'.
Consider alternatives or fork if needed.
npm install importmap-plugin
Use `import ImportmapPlugin from 'importmap-plugin'`
No dependency data recorded yet.