A simple plugin to show how to use vue compiler to parse and patch vue SFC
import type { Plugin } from 'vite'
import { MagicString, parse as parseVueSFC } from 'vue/compiler-sfc'
import type { AttributeNode, ElementNode } from '@vue/compiler-core'
import { NodeTypes } from '@vue/compiler-core'
const patchSearch: Plugin = {
name: 'vite-plugin-patch-wot-design-uni-search',