From e1e82adef8af6320e303be5877610fdde13de801 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 12 Oct 2023 03:16:55 -0400 Subject: [PATCH] fix: add all lumeweb libraries to external --- vite.config.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 750f1eb..78cd47e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,7 +13,11 @@ export default defineConfig({ plugins: [ svgr(), react(), - scopeTailwind({ react: true, prefix: TW_PREFIX, classNameTransformers: ['cn'] }), + scopeTailwind({ + react: true, + prefix: TW_PREFIX, + classNameTransformers: ["cn"], + }), dts({ tsconfigPath: "tsconfig.build.json", }), @@ -49,7 +53,15 @@ export default defineConfig({ output: { inlineDynamicImports: false, }, - external: ["react", "react-dom"], + external: [ + "react", + "react-dom", + "@lumeweb/libportal", + "@lumeweb/libweb", + "@lumeweb/libkernel/module", + "@lumeweb/libkernel/kernel", + "@lumeweb/libkernel", + ], }, }, });