@stephansama/vite-iconify-svgmap
Version:
Vite plugin for generating iconify svg sprite maps in memory
23 lines (22 loc) • 849 B
text/typescript
import { t as Options } from "../type-S4YO472i.mjs";
import { Plugin } from "vite";
//#region src/svelte.d.ts
/**
* Vite plugins for sveltekit. add after `sveltekit()`:
*
* ```js
* plugins: [sveltekit(), iconifySvgmap()];
* ```
*
* Sveltekit prerenders in a worker thread during its server build's
* `writeBundle` and runs the adapter in `closeBundle`:
*
* - When the client build is written, an empty placeholder sprite is added for
* every installed icon pack so the prerender crawler does not fail on `<use
* href>` links to sprites that do not exist yet
* - After prerendering the real sprites replace the placeholders (unused ones are
* removed), before the adapter copies the client output
*/
declare function iconifySvgmapSvelteKit(options?: Options): Plugin[];
//#endregion
export { iconifySvgmapSvelteKit as default };