diff --git a/src/index.ts b/src/index.ts index 4c7e2a8..28c37f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -87,7 +87,14 @@ export default async function (context: PresetContext): Promise { }, resolve: {}, optimize: {}, - polyfill: {}, + polyfill: { + exclude: ["fs"], + globals: { + Buffer: true, + global: true, + process: true, + }, + }, }, }, scripts: resolve(TEMPLATES, "scripts.yaml"),