From e629c68af0667ef9966fff5cf638fb2283989c3e Mon Sep 17 00:00:00 2001 From: yy-wow Date: Thu, 21 Nov 2024 21:32:48 -0800 Subject: [PATCH] fix: vite config --- packages/design-core/vite.config.js | 2 +- packages/renderer/vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/design-core/vite.config.js b/packages/design-core/vite.config.js index ed968b1cc..3d6c3a7d9 100644 --- a/packages/design-core/vite.config.js +++ b/packages/design-core/vite.config.js @@ -61,7 +61,7 @@ export default defineConfig({ } } }, - external: ['vue', 'vue-i18n'] + external: ['vue', 'monaco-editor', 'prettier', /@opentiny\/vue.*/, '@opentiny/tiny-engine-meta-register'] } } }) diff --git a/packages/renderer/vite.config.js b/packages/renderer/vite.config.js index 32a67c825..6f106b766 100644 --- a/packages/renderer/vite.config.js +++ b/packages/renderer/vite.config.js @@ -32,7 +32,7 @@ export default defineConfig({ output: { banner: 'import "./index.css"' }, - external: ['vue', '@vueuse/core', 'vue-i18n', /@opentiny\/tiny-engine.*/, /@opentiny\/vue.*/] + external: ['vue', 'vue-i18n', /@opentiny\/vue.*/] }, minify: true }