fix: update node-fetch dummy export to include Response, FormData and Blob
This commit is contained in:
parent
2d138e9a25
commit
a53e8885b4
|
@ -94,7 +94,8 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
optimize: {
|
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: {
|
polyfill: {
|
||||||
exclude: ["fs"],
|
exclude: ["fs"],
|
||||||
|
|
Loading…
Reference in New Issue