From a7aefc7460711b1bbaeb8f77e5d689702b5ed93c Mon Sep 17 00:00:00 2001 From: relliv Date: Mon, 4 Nov 2024 21:34:51 +0300 Subject: [PATCH] Fix vue library bundle size issue --- libs/features/nx-vue-calendar-heatmap/package.json | 2 +- libs/features/nx-vue-calendar-heatmap/vite.config.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/features/nx-vue-calendar-heatmap/package.json b/libs/features/nx-vue-calendar-heatmap/package.json index 3032d98..40b86b8 100644 --- a/libs/features/nx-vue-calendar-heatmap/package.json +++ b/libs/features/nx-vue-calendar-heatmap/package.json @@ -1,6 +1,6 @@ { "name": "@ngeenx/nx-vue-calendar-heatmap", - "version": "1.0.0", + "version": "1.0.1", "description": "Vue Calendar Heatmap component", "keywords": [ "vue", diff --git a/libs/features/nx-vue-calendar-heatmap/vite.config.ts b/libs/features/nx-vue-calendar-heatmap/vite.config.ts index e1c1948..eb86042 100644 --- a/libs/features/nx-vue-calendar-heatmap/vite.config.ts +++ b/libs/features/nx-vue-calendar-heatmap/vite.config.ts @@ -42,12 +42,14 @@ export default defineConfig({ }, rollupOptions: { // External packages that should not be bundled into your library. - external: ["vue"], + external: ["vue", "tippy.js", "luxon"], output: { // Provide global variables to use in the UMD build // for externalized deps globals: { vue: "Vue", + "tippy.js": "tippy", + luxon: "luxon", }, }, },