From a53e8885b4fa04bdd1ab2053433b5b15dbc57076 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 11 Jul 2023 05:04:53 -0400 Subject: [PATCH] fix: update node-fetch dummy export to include Response, FormData and Blob --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 90253c3..84a8531 100644 --- a/src/index.ts +++ b/src/index.ts @@ -94,7 +94,8 @@ export default async function (context: PresetContext): Promise { ], }, optimize: { - "node-fetch": "export default undefined;", + "node-fetch": + "const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};", }, polyfill: { exclude: ["fs"],