{"library":"vite-svg-loader","type":"library","category":null,"description":"Vite SVG Loader is a Vite plugin designed to seamlessly load SVG files as Vue 3 components within a Vite project. It automatically optimizes SVGs using SVGO, which can be configured or entirely disabled on a per-file or global basis. The package is currently stable at version 5.1.1 and receives active maintenance, including compatibility updates for new Vite and Vue versions, as well as security patches for its dependencies. Its release cadence is moderate, with several updates per year, indicating ongoing development. Key differentiators include its flexible import options, allowing SVGs to be loaded as Vue components (default), raw strings (`?raw`), or URL data (`?url`), and the ability to skip SVGO for specific files (`?skipsvgo`). This provides developers with granular control over how SVG assets are handled in their Vue applications.","language":"javascript","status":"active","version":"5.1.1","tags":["javascript","vite-plugin","vite","vue","svg","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vite-svg-loader","imports":["import svgLoader from 'vite-svg-loader'","import MyIcon from './assets/my-icon.svg'","import iconUrl from './assets/my-icon.svg?url'","import SvgRawString from './assets/my-icon.svg?raw'","/// <reference types=\"vite-svg-loader\" />"]},{"cmd":"yarn add vite-svg-loader","imports":[]},{"cmd":"pnpm add vite-svg-loader","imports":[]}],"homepage":null,"github":"https://github.com/jpkleemans/vite-svg-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-svg-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vite-svg-loader/compatibility"}}