UNPKG

@svgx/vite-plugin-react

Version:

svgx vite plugin to import SVG files as react components

8 lines (7 loc) 358 B
/// <reference types="./modules" /> import type { Plugin } from "vite"; import type { ToJsComponentOptions } from "@svgx/core"; export type SVGXOptions = Omit<ToJsComponentOptions, "development" | "filePath" | "defaultExport" | "componentName"> & { defaultImport?: "url" | "raw" | "component"; }; export default function (options?: SVGXOptions): Plugin;