From 2973ced0c133a28cd8c7c11ff082235986435792 Mon Sep 17 00:00:00 2001 From: baurine <2008.hbl@gmail.com> Date: Thu, 25 Jul 2024 21:59:48 +0800 Subject: [PATCH] fix: fix vue component build, reduce size --- packages/vue/package.json | 2 +- packages/vue/vite.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vue/package.json b/packages/vue/package.json index 504131a..d526301 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -1,6 +1,6 @@ { "name": "@tidbcloud/tisqleditor-vue", - "version": "0.0.1", + "version": "0.0.2", "description": "tisqleditor vue component", "type": "module", "main": "dist/index.js", diff --git a/packages/vue/vite.config.js b/packages/vue/vite.config.js index f48c3e8..05b461c 100644 --- a/packages/vue/vite.config.js +++ b/packages/vue/vite.config.js @@ -10,7 +10,7 @@ export default defineConfig({ formats: ['es'] }, rollupOptions: { - external: ['vue'], + external: ['vue', '@tidbcloud/tisqleditor'], output: { globals: { vue: 'Vue'