一覧へ戻る
jacekkarczmarczyk/importmap-plugin(新しいタブで開きます)
主要言語: TypeScript
Rollup import maps plugin
- star 数
- 10
- watcher 数
- 1
- fork 数
- 1
- issue 数
- 2
- 最終更新
- 2023/01/05
主要言語: 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.