Back to results
jacekkarczmarczyk/importmap-plugin(opens in a new tab)
Language: TypeScript
Rollup import maps plugin
- stars
- 10
- watchers
- 1
- forks
- 1
- open issues
- 2
- Last updated
- 01/05/2023
Language: TypeScript
Rollup import maps plugin
Vite/Rollup import maps plugin
// vite.config.ts import ImportmapPlugin from 'importmap-plugin'; export default defineConfig({ build: { rollupOptions: { output: { format: 'system', // 'system' or 'es' entryFileNames: 'app/index.js', // DO NOT INCLUDE HASH HERE chunkFileNames: 'chunks/[name].js', // DO NOT INCLUDE HASH HERE plugins: [ ImportmapPlugin({ base: '/', // same as `base` option in Vite config external: true, // external import maps work only for SystemJS indexHtml: 'index.html', // entry html file name hashLength: 8, }), ], }, }, }, });
This is just a proof of concept. Use at your own risk.