fix: update node-fetch dummy export to include Response, FormData and Blob

This commit is contained in:
Derrick Hammer 2023-07-11 05:04:53 -04:00
parent 2d138e9a25
commit a53e8885b4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -94,7 +94,8 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
],
},
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"],