From 0f5c630b915a0a7cdde709aefba4f4cb9273a8dd Mon Sep 17 00:00:00 2001 From: alan-wu Date: Mon, 6 Jan 2025 16:40:42 +1300 Subject: [PATCH] Externalise utilities when bundling. --- vite.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vite.config.js b/vite.config.js index 9b87839d..f0f3e293 100644 --- a/vite.config.js +++ b/vite.config.js @@ -38,11 +38,12 @@ export default defineConfig({ fileName: 'map-side-bar', }, rollupOptions: { - external: ["vue"], + external: ["vue", "@abi-software/map-utilities"], output: { - globals: { - vue: "Vue", - }, + globals: { + vue: "Vue", + "@abi-software/map-utilities": "@abi-software/map-utilities" + }, }, }, },