fix: build error

This commit is contained in:
vben
2022-02-28 00:21:26 +08:00
parent ecc2135b5e
commit af6ab98945
11 changed files with 1816 additions and 1603 deletions

View File

@@ -1,3 +1,4 @@
import { PluginOption } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
import legacy from '@vitejs/plugin-legacy';
@@ -24,7 +25,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE,
} = viteEnv;
const vitePlugins = [
const vitePlugins: (PluginOption | PluginOption[])[] = [
// have to
vue(),
// have to