From 27c52db1676c1b15d054578584d320a7c8ad0e5b Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Jul 2023 03:38:54 -0400 Subject: [PATCH] fix: always exclude node fetch from bundles --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4893a3e..ca5e5d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -86,7 +86,9 @@ export default async function (context: PresetContext): Promise { minify: false, }, resolve: {}, - optimize: {}, + optimize: { + "node-fetch": "export default undefined;", + }, polyfill: { exclude: ["fs"], globals: {