{"id":28391443,"url":"https://github.com/beeequeue/fetch-unfill","last_synced_at":"2026-03-05T06:02:14.952Z","repository":{"id":293527604,"uuid":"625969601","full_name":"beeequeue/fetch-unfill","owner":"beeequeue","description":"Remove `fetch` polyfills from bundles in favor of native implementations","archived":false,"fork":false,"pushed_at":"2026-03-01T21:01:40.000Z","size":366,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-01T23:56:02.274Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beeequeue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-10T14:13:23.000Z","updated_at":"2026-01-22T19:31:32.000Z","dependencies_parsed_at":"2025-06-08T22:13:53.147Z","dependency_job_id":"28342a51-9d3b-4783-b382-e322afd16ee0","html_url":"https://github.com/beeequeue/fetch-unfill","commit_stats":null,"previous_names":["beeequeue/fetch-unfill","beeequeue/fetch-unfiller"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/beeequeue/fetch-unfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeequeue%2Ffetch-unfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeequeue%2Ffetch-unfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeequeue%2Ffetch-unfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeequeue%2Ffetch-unfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beeequeue","download_url":"https://codeload.github.com/beeequeue/fetch-unfill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beeequeue%2Ffetch-unfill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-31T09:15:14.530Z","updated_at":"2026-03-05T06:02:14.929Z","avatar_url":"https://github.com/beeequeue.png","language":"TypeScript","readme":"# fetch-unfill + unplugin\n\n![node \u003e=18](https://img.shields.io/node/v/fetch-unfill)\n[![npm](https://img.shields.io/npm/v/fetch-unfill?label=fetch-unfill)](https://www.npmjs.com/package/fetch-unfill)\n[![npm](https://img.shields.io/npm/v/unplugin-fetch-unfill?label=unplugin-fetch-unfill)](https://www.npmjs.com/package/unplugin-fetch-unfill)\n[![node-fetch before: 200kb](https://img.shields.io/bundlejs/size/node-fetch@^1?label=node-fetch+before)](https://bundlejs.com/?q=node-fetch%40%5E1\u0026treeshake=%5B%7B+default+%7D%5D)\n[![node-fetch after: 162b](https://img.shields.io/bundlejs/size/fetch-unfill?label=node-fetch+after)](https://bundlejs.com/?q=fetch-unfill\u0026treeshake=%5B%7B+default+%7D%5D)\n\nRemoves `fetch` polyfills from your bundles in favor of native implementations.\n\n- ✅ `node-fetch`\n- ✅ `node-fetch-native`\n- ✅ `cross-fetch`\n- ✅ `unfetch`\n- ✅ `whatwg-fetch`\n- ✅ `@supabase/node-fetch`\n- ❌ `@whatwg-node/fetch`\n\n✅: verified ❔: unverified, should work ❌: not removable\n\n## Usage\n\n### Unplugin\n\nAdd the plugin to your config's plugin array:\n\n```ts\nimport { fetchUnfillUnplugin } from \"unplugin-fetch-unfill\"\n\n// ...\nplugins: [\n  // ...\n  fetchUnfillUnplugin.{BUNDLER}()\n]\n```\n\n### Manual Configuration\n\nInstall `fetch-unfill` with your package manager.\n\n### Vite\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen\u003c/summary\u003e\n\n```ts\nimport { defineConfig } from \"vite\"\nimport fetchUnfillAliases from \"fetch-unfill/aliases\"\n\nexport default defineConfig({\n  resolve: {\n    alias: {\n      // Alias any known, replaceable polyfills in use to `fetch-unfill`\n      ...fetchUnfillAliases,\n    },\n  },\n})\n```\n\n\u003c/details\u003e\n\n### esbuild\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen\u003c/summary\u003e\n\n```ts\nimport { build } from \"esbuild\"\nimport fetchUnfillAliases from \"fetch-unfill/aliases\"\n\nawait build({\n  // ...\n  alias: {\n    // Alias any known, replaceable polyfills in use to `fetch-unfill`\n    ...fetchUnfillAliases,\n  },\n})\n```\n\n\u003c/details\u003e\n\n### Webpack/Rspack\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen\u003c/summary\u003e\n\n```ts\nimport type { Configuration } from \"webpack\"\nimport fetchUnfillAliases from \"fetch-unfill/aliases\"\n\nexport default {\n  // ...\n  resolve: {\n    alias: {\n      // Alias any known, replaceable polyfills in use to `fetch-unfill`\n      ...fetchUnfillAliases,\n    },\n  },\n} satisfies Configuration\n```\n\n\u003c/details\u003e\n\n### Rolldown\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen\u003c/summary\u003e\n\n```ts\nimport type { RolldownOptions } from \"rolldown\"\nimport { aliasPlugin } from \"rolldown/experimental\"\nimport { rollupAliases } from \"fetch-unfill/aliases\"\n\nexport default {\n  // ...\n  plugins: [\n    // ...\n    aliasPlugin({\n      entries: [\n        // Alias any known, replaceable polyfills in use to `fetch-unfill`\n        ...rollupAliases,\n      ],\n    }),\n  ],\n} satisfies RolldownOptions\n```\n\n\u003c/details\u003e\n\n### Rollup\n\n\u003cdetails\u003e\n\u003csummary\u003eOpen\u003c/summary\u003e\n\n```ts\nimport type { RollupOptions } from \"rollup\"\nimport Alias from \"@rollup/plugin-alias\"\nimport { rollupAliases } from \"fetch-unfill/aliases\"\n\nexport default {\n  // ...\n  plugins: [\n    // ...\n    Alias({\n      entries: [\n        // Alias any known, replaceable polyfills in use to `fetch-unfill`\n        ...rollupAliases,\n      ],\n    }),\n  ],\n} satisfies RollupOptions\n```\n\n\u003c/details\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeequeue%2Ffetch-unfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeeequeue%2Ffetch-unfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeeequeue%2Ffetch-unfill/lists"}