fix: add default polyfill config
This commit is contained in:
parent
a3e87b4a44
commit
f6ba49c45f
|
@ -87,7 +87,14 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
|
||||||
},
|
},
|
||||||
resolve: {},
|
resolve: {},
|
||||||
optimize: {},
|
optimize: {},
|
||||||
polyfill: {},
|
polyfill: {
|
||||||
|
exclude: ["fs"],
|
||||||
|
globals: {
|
||||||
|
Buffer: true,
|
||||||
|
global: true,
|
||||||
|
process: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
scripts: resolve(TEMPLATES, "scripts.yaml"),
|
scripts: resolve(TEMPLATES, "scripts.yaml"),
|
||||||
|
|
Loading…
Reference in New Issue