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: {