From 5b87bb90d1de91f701881d05f71b8b99cbe0e239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Wed, 23 Aug 2023 10:10:22 +0200 Subject: [PATCH] fix: force bundle `is-svg` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- vite.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index c02871d0..82612d0a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,4 +4,8 @@ export default createLibConfig({ index: 'lib/index.ts', }, { libraryFormats: ['es', 'cjs'], + nodeExternalsOptions: { + // Force bundle pure ESM module + exclude: ['is-svg'], + }, })