From 3b6fec053f4c0d69426c3fde8eb680ea4edc4a50 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 2 Jul 2023 03:17:39 -0400 Subject: [PATCH] fix: ensure plugin-node-resolve uses browser mode --- src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.ts b/src/index.ts index 6e51349..189fca6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,6 +25,10 @@ export default async function (context: PresetContext): Promise { "0": { inlineDynamicImports: true, }, + "1": { + browser: true, + preferBuiltins: false, + }, }, plugins: [ [