Transform svg to component.
npm i -D vite-plugin-svg-components
// vite.config.ts
import SvgComponents from 'vite-plugin-svg-components'
export default defineConfig({
plugins: [
SvgComponents({
/* options */
})
]
})
MIT License © 2023-PRESENT yp910108