From 0fb8d6c73b0567af8856ff2b7f196a57001c5071 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 3 Jul 2023 04:27:55 -0400 Subject: [PATCH] fix: add libkernel, libweb, and libportal to node resolve de-dup explicitly to prevent import problems --- src/index.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/index.ts b/src/index.ts index 545c6ed..a981268 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,6 +24,22 @@ export default async function (context: PresetContext): Promise { "3": ["@semantic-release/npm", { npmPublish: false }], }, }, + rollup: { + plugins: { + "1": [ + "@apply @rollup/plugin-node-resolve[default]", + [ + { + dedupe: [ + "@lumeweb/libkernel", + "@lumeweb/libweb", + "@lumeweb/libportal", + ], + }, + ], + ], + }, + }, }, }; }