Import some module via importmap
npm install @kanamone/vite-plugin-dynamic-import-with-import-map

Import some modules via importmap
1. ✅ Auto embed importmap in index.html
1. ✅ Auto generate external modules bundle by esbuild
1. ✅ Minify
1. ✅ Inline sourcemap
``sh`
npm install @kanamone/vite-plugin-dynamic-import-with-import-map
The following example makes split react bundle
`ts
// vite.config.ts
import { defineConfig } from 'vite'
import { dynamicImportWithImportMap } from '@kanamone/vite-plugin-dynamic-import-with-import-map'
export default defineConfig({
plugins: [dynamicImportWithImportMap(['react'])],
})
``
Module dependency resolution doesn't work. Because vite is not execute rollup build phase when serve mode.