UNPKG

vite-svg-vue-component

Version:

Use svg as vue components with support for both vue2.7 and vue3.x

15 lines (12 loc) 431 B
import { FilterPattern } from '@rollup/pluginutils'; import { Config } from 'svgo'; import { Plugin } from 'vite'; interface Options { optimize?: boolean | Config; vueVersion?: 2 | 3; include?: FilterPattern; exclude?: FilterPattern; } declare const PLUGIN_NAME = "vite-svg-vue-component"; declare function createPlugin(options?: Options): Plugin; export { Options, PLUGIN_NAME, createPlugin as default };