fix: add default polyfill config

This commit is contained in:
Derrick Hammer 2023-07-08 02:10:33 -04:00
parent a3e87b4a44
commit f6ba49c45f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,14 @@ export default async function (context: PresetContext): Promise<PresetAsset> {
},
resolve: {},
optimize: {},
polyfill: {},
polyfill: {
exclude: ["fs"],
globals: {
Buffer: true,
global: true,
process: true,
},
},
},
},
scripts: resolve(TEMPLATES, "scripts.yaml"),