@svgx/vite-plugin-qwik
Version:
svgx vite plugin to import SVG files as qwik components
15 lines (14 loc) • 597 B
JavaScript
import svgx from "@svgx/vite-plugin-react";
export default function (options) {
const defaultOptions = {
importSource: "@builder.io/qwik",
runtime: "automatic",
pragma: (options === null || options === void 0 ? void 0 : options.runtime) === "classic" ? "h" : undefined,
pragmaFrag: (options === null || options === void 0 ? void 0 : options.runtime) === "classic" ? "Fragment" : undefined,
};
const mergedOptions = Object.assign({}, defaultOptions, options);
return {
...svgx(mergedOptions),
name: "@svgx-vite-plugin-qwik",
};
}