fix: add all lumeweb libraries to external

This commit is contained in:
Derrick Hammer 2023-10-12 03:16:55 -04:00
parent 4f5118fe34
commit e1e82adef8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 14 additions and 2 deletions

View File

@ -13,7 +13,11 @@ export default defineConfig({
plugins: [ plugins: [
svgr(), svgr(),
react(), react(),
scopeTailwind({ react: true, prefix: TW_PREFIX, classNameTransformers: ['cn'] }), scopeTailwind({
react: true,
prefix: TW_PREFIX,
classNameTransformers: ["cn"],
}),
dts({ dts({
tsconfigPath: "tsconfig.build.json", tsconfigPath: "tsconfig.build.json",
}), }),
@ -49,7 +53,15 @@ export default defineConfig({
output: { output: {
inlineDynamicImports: false, inlineDynamicImports: false,
}, },
external: ["react", "react-dom"], external: [
"react",
"react-dom",
"@lumeweb/libportal",
"@lumeweb/libweb",
"@lumeweb/libkernel/module",
"@lumeweb/libkernel/kernel",
"@lumeweb/libkernel",
],
}, },
}, },
}); });