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"],