用于获取setup组件ref全部导出
//client
import {createApp} from "vue"
import App from "./app"
import unpluginVueRef from "unplugin-vue-component-ref/client"
createApp(App).use(unpluginVueRef)
import { vitePlugin } from "unplugin-vue-component-ref/node";
interface Options {
include?: FilterPattern;
exclude?: FilterPattern;
}
export default defineConfig({
plugins: [
vitePlugin({ /* options */ }) //
],
});
const { webpackPlugin } = require("unplugin-vue-component-ref/node") ;
interface Options {
include?: FilterPattern;
exclude?: FilterPattern;
}
module.exports = {
configureWebpack: {
plugins: [
webpackPlugin({ /* options */ }),
],
},
};