refactor: use tsx refactor selector component

This commit is contained in:
xiaoxian521
2021-04-13 17:33:09 +08:00
parent 8a4a39de3a
commit 0d1f5bb673
15 changed files with 1184 additions and 74 deletions

View File

@@ -2,6 +2,7 @@
import { resolve } from 'path'
import { UserConfigExport, ConfigEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import { loadEnv } from './build/utils'
import { createProxy } from './build/proxy'
import { viteMockServe } from 'vite-plugin-mock'
@@ -45,6 +46,7 @@ export default ({ command }: ConfigEnv): UserConfigExport => {
},
plugins: [
vue(),
vueJsx(),
viteMockServe({
mockPath: 'mock',
localEnabled: command === 'serve',