fix: always exclude node fetch from bundles

This commit is contained in:
Derrick Hammer 2023-07-08 03:38:54 -04:00
parent 7d5601472d
commit 27c52db167
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,9 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
minify: false, minify: false,
}, },
resolve: {}, resolve: {},
optimize: {}, optimize: {
"node-fetch": "export default undefined;",
},
polyfill: { polyfill: {
exclude: ["fs"], exclude: ["fs"],
globals: { globals: {