fix: always exclude node fetch from bundles
This commit is contained in:
parent
7d5601472d
commit
27c52db167
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue