// lib/polyfills/fetch.cjs
const { fetch, Headers, Request, Response, FormData, File } = require('undici');

// Expose dans le global AVANT que tes modules importent/require quoi que ce soit
globalThis.fetch = fetch;
globalThis.Headers = Headers;
globalThis.Request = Request;
globalThis.Response = Response;
globalThis.FormData = FormData;
globalThis.File = File;
