UNPKG

@svgx/vite-plugin-qwik

Version:
15 lines (14 loc) 597 B
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", }; }