unplugin-vue-component-ref
用于获取setup组件ref全部导出
329
11
| Install | |
|---|---|
npm install unplugin-vue-component-ref |
|
| Latest Version: | 1.0.9 |
| Vue: | 3 |
| License: | ISC |
| Last Updated: | Apr 1, 2023 |
| Links: | GitHub · npm |
Maintainer: 247076126zr
unplugin-vue-component-ref
用于获取setup组件ref全部导出
使用方式
//client
import {createApp} from "vue"
import App from "./app"
import unpluginVueRef from "unplugin-vue-component-ref/client"
createApp(App).use(unpluginVueRef)
vite
import { vitePlugin } from "unplugin-vue-component-ref/node";
interface Options {
include?: FilterPattern;
exclude?: FilterPattern;
}
export default defineConfig({
plugins: [
vitePlugin({ /* options */ }) //
],
});
vue.config.js
const { webpackPlugin } = require("unplugin-vue-component-ref/node") ;
interface Options {
include?: FilterPattern;
exclude?: FilterPattern;
}
module.exports = {
configureWebpack: {
plugins: [
webpackPlugin({ /* options */ }),
],
},
};
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.9 | ^3.2.39 | ISC | |
| 1.0.8 | ^3.2.39 | ISC | |
| 1.0.7 | ^3.2.39 | ISC | |
| 1.0.6 | ^3.2.39 | ISC | |
| 1.0.5 | ^3.2.39 | ISC | |
| 1.0.3 | ^3.2.39 | ISC | |
| 1.0.2 | ^3.2.39 | ISC | |
| 1.0.1 | ^3.2.39 | ISC | |
| 1.0.0 | ^3.2.39 | ISC |