{"library":"vite-plugin-svelte-svg","type":"library","category":null,"description":"Vite 4.x plugin (v2.3.0) to import SVG files as Svelte components, with optional SVGO optimization. It requires the `?component` suffix (or `?c`) to distinguish SVG components from plain SVG URLs, but this can be disabled via `requireSuffix: false`. The plugin is Svelte 3/4 compatible but does NOT support Svelte 5 or Vite 5. It ships TypeScript types. Releases are infrequent, with v2 being the current stable line. Alternatives include `svelte-svg` or manual import via `{@html}`.","language":"javascript","status":"active","version":"2.3.0","tags":["javascript","vite-plugin","typescript"],"last_verified":"Mon Apr 27","install":[{"cmd":"npm install vite-plugin-svelte-svg","imports":["import svelteSVG from 'vite-plugin-svelte-svg'","import MyIcon from 'path/to/icon.svg?component'","import MyIcon from 'path/to/icon.svg?c'"]},{"cmd":"yarn add vite-plugin-svelte-svg","imports":[]},{"cmd":"pnpm add vite-plugin-svelte-svg","imports":[]}],"homepage":null,"github":"https://github.com/metafy-gg/vite-plugin-svelte-svg","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vite-plugin-svelte-svg","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}