From 4e9c506490744f9047d183dc7cad144fe6612a44 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Jul 2023 03:57:35 -0400 Subject: [PATCH] fix: always dedupe primary sdk libraries --- src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ca5e5d0..ecf44cf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,13 @@ export default async function (context: PresetContext): Promise { }, minify: false, }, - resolve: {}, + resolve: { + dedupe: [ + "@lumeweb/libportal", + "@lumeweb/libweb", + "@lumeweb/libkernel", + ], + }, optimize: { "node-fetch": "export default undefined;", },