Merge pull request #18 from sean3112/patch-1

Breakpoints issues, depends on 'vite-plugin-vue-setup-extend-plus' instead of 'vite-plugin-vue-setup-extend'
This commit is contained in:
Ronnie Zhang 2022-07-01 15:24:32 +08:00 committed by GitHub
commit 90aa54d4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import vue from '@vitejs/plugin-vue'
* * 扩展setup插件支持在script标签中使用name属性 * * 扩展setup插件支持在script标签中使用name属性
* usage: <script setup name="MyComp"></script> * usage: <script setup name="MyComp"></script>
*/ */
import VueSetupExtend from 'vite-plugin-vue-setup-extend' import vueSetupExtend from 'vite-plugin-vue-setup-extend-plus'
/** /**
* * unocss插件原子css * * unocss插件原子css
@ -20,7 +20,7 @@ import { configMockPlugin } from './mock'
import unplugin from './unplugin' import unplugin from './unplugin'
export function createVitePlugins(viteEnv, isBuild) { export function createVitePlugins(viteEnv, isBuild) {
const plugins = [vue(), VueSetupExtend(), ...unplugin, configHtmlPlugin(viteEnv, isBuild), Unocss()] const plugins = [vue(), vueSetupExtend(), ...unplugin, configHtmlPlugin(viteEnv, isBuild), Unocss()]
if (viteEnv?.VITE_APP_USE_MOCK) { if (viteEnv?.VITE_APP_USE_MOCK) {
plugins.push(configMockPlugin(isBuild)) plugins.push(configMockPlugin(isBuild))

View File

@ -44,6 +44,6 @@
"vite": "^2.9.9", "vite": "^2.9.9",
"vite-plugin-html": "^3.2.0", "vite-plugin-html": "^3.2.0",
"vite-plugin-mock": "^2.9.6", "vite-plugin-mock": "^2.9.6",
"vite-plugin-vue-setup-extend": "^0.3.0" "vite-plugin-vue-setup-extend-plus": "^0.1.0"
} }
} }