UNPKG

@svgx/vite-plugin-qwik

Version:
18 lines (17 loc) 745 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const vite_plugin_react_1 = require("@svgx/vite-plugin-react"); function default_1(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 { ...(0, vite_plugin_react_1.default)(mergedOptions), name: "@svgx-vite-plugin-qwik", }; } exports.default = default_1;