From 398be8fede84167282c3252ab24e6149bf095f32 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 3 Jul 2023 05:14:05 -0400 Subject: [PATCH] fix: change node-resolve config to assume it is an object entry since we rewrite it in the rollup plugin in browser mode --- src/index.ts | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/index.ts b/src/index.ts index a981268..8eeec08 100644 --- a/src/index.ts +++ b/src/index.ts @@ -26,18 +26,15 @@ export default async function (context: PresetContext): Promise { }, rollup: { plugins: { - "1": [ - "@apply @rollup/plugin-node-resolve[default]", - [ - { - dedupe: [ - "@lumeweb/libkernel", - "@lumeweb/libweb", - "@lumeweb/libportal", - ], - }, - ], - ], + "1": { + "1": { + dedupe: [ + "@lumeweb/libkernel", + "@lumeweb/libweb", + "@lumeweb/libportal", + ], + }, + }, }, }, },