From d13faa6933138b60624fa1631d28d8b0dfb84825 Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2betop.cn@gmail.com> Date: Wed, 12 Apr 2023 18:41:24 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=8D=87=E7=BA=A7=20vite=20(#6590)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lerna.json | 3 +-- package.json | 7 +++---- vite.config.ts | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lerna.json b/lerna.json index 5e202a023..3f3876715 100644 --- a/lerna.json +++ b/lerna.json @@ -3,8 +3,7 @@ "packages/amis-formula", "packages/amis-core", "packages/amis-ui", - "packages/amis", - "packages/ooxml-viewer" + "packages/amis" ], "version": "2.9.0" } diff --git a/package.json b/package.json index a9a74ca4e..02c7fa1f6 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "packages/amis-ui", "packages/amis", "packages/amis-editor-core", - "packages/amis-editor", - "packages/ooxml-viewer" + "packages/amis-editor" ], "scripts": { "fis3-serve": "fis3 server start --www ./public --port 8888 --no-daemon --no-browse", @@ -75,7 +74,7 @@ "rollup-pluginutils": "^2.8.2", "setprototypeof": "^1.2.0", "ts-jest": "^29.0.2", - "vite": "^3.2.2", + "vite": "^4.2.1", "vite-plugin-monaco-editor": "^1.1.0", "vite-plugin-svgr": "^2.2.2", "zrender": "^5.3.2" @@ -118,4 +117,4 @@ "printBasicPrototype": false } } -} \ No newline at end of file +} diff --git a/vite.config.ts b/vite.config.ts index 9ecbc7927..6349e41de 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -38,6 +38,7 @@ export default defineConfig({ ], optimizeDeps: { include: ['amis-formula/lib/doc'], + exclude: ['amis-core', 'amis-formula', 'amis', 'amis-ui'], esbuildOptions: { target: 'esnext' }