fix: 🐛 删除vite-plugin-vue-setup-extend 残留代码

This commit is contained in:
xiangshu233 2024-01-04 17:11:32 +08:00
parent f044369fc5
commit 5fddbdda2f

View File

@ -1,9 +1,7 @@
import type { PluginOption } from 'vite'; import type { PluginOption } from 'vite';
import Components from 'unplugin-vue-components/vite'; import Components from 'unplugin-vue-components/vite';
import { VantResolver } from 'unplugin-vue-components/resolvers'; import { VantResolver } from 'unplugin-vue-components/resolvers';
import vue from '@vitejs/plugin-vue'; import vue from '@vitejs/plugin-vue';
import vueSetupExtend from 'vite-plugin-vue-setup-extend';
import WindiCSS from 'vite-plugin-windicss'; import WindiCSS from 'vite-plugin-windicss';
import { configHtmlPlugin } from './html'; import { configHtmlPlugin } from './html';
@ -29,8 +27,6 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean, prodMock:
const vitePlugins: (PluginOption | PluginOption[])[] = [ const vitePlugins: (PluginOption | PluginOption[])[] = [
// have to // have to
vue(), vue(),
// support name https://github.com/vbenjs/vite-plugin-vue-setup-extend
vueSetupExtend(),
// 按需引入VantUi且自动创建组件声明 // 按需引入VantUi且自动创建组件声明
Components({ Components({
dts: true, dts: true,