{"id":18764484,"url":"https://github.com/modernweb-dev/dev-server-polyfill","last_synced_at":"2025-07-24T13:33:23.170Z","repository":{"id":216647267,"uuid":"741892043","full_name":"modernweb-dev/dev-server-polyfill","owner":"modernweb-dev","description":"Dev server plugin for loading polyfills","archived":false,"fork":false,"pushed_at":"2024-04-11T13:35:09.000Z","size":278,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-02T19:26:13.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/modernweb-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"modernweb-dev","open_collective":"modern-web"}},"created_at":"2024-01-11T10:26:44.000Z","updated_at":"2024-05-17T16:55:40.000Z","dependencies_parsed_at":"2024-01-11T16:37:36.984Z","dependency_job_id":"50fb48d1-8d21-4ba3-9877-4f4ce6137f76","html_url":"https://github.com/modernweb-dev/dev-server-polyfill","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"cddab3f5fd34dd54326fc191928a297f7f24d0c0"},"previous_names":["modernweb-dev/dev-server-polyfill"],"tags_count":0,"template":false,"template_full_name":"modernweb-dev/package-template","purl":"pkg:github/modernweb-dev/dev-server-polyfill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernweb-dev%2Fdev-server-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernweb-dev%2Fdev-server-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernweb-dev%2Fdev-server-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernweb-dev%2Fdev-server-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modernweb-dev","download_url":"https://codeload.github.com/modernweb-dev/dev-server-polyfill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernweb-dev%2Fdev-server-polyfill/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264861175,"owners_count":23674699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-07T18:30:01.736Z","updated_at":"2025-07-24T13:33:23.106Z","avatar_url":"https://github.com/modernweb-dev.png","language":"TypeScript","readme":"# Dev server polyfill\n\nPlugin to load polyfills during development. Uses [`@web/polyfills-loader`](https://modern-web.dev/docs/building/polyfills-loader/) internally.\n\n## Usage\n\n`web-dev-server.config.js`:\n\n```js\nimport { polyfill } from '@web/dev-server-polyfill';\n\nexport default {\n  plugins: [\n    polyfill({\n      scopedCustomElementRegistry: true,\n    }),\n  ],\n};\n```\n\nYou can find the supported polyfills [here](https://modern-web.dev/docs/building/polyfills-loader/#polyfills).\n\nYou can also provide custom polyfills:\n\n`web-dev-server.config.js`:\n\n```js\nimport { polyfill } from '@web/dev-server-polyfill';\n\nexport default {\n  plugins: [\n    polyfill({\n      custom: [\n        {\n          name: 'my-feature-polyfill',\n          path: 'path/to/my/polyfill.js',\n          test: \"!('myFeature' in window)\",\n        },\n      ],\n    }),\n  ],\n};\n```\n\nYou can find the configuration options for providing custom polyfills [here](https://modern-web.dev/docs/building/polyfills-loader/#custom-polyfills).\n","funding_links":["https://github.com/sponsors/modernweb-dev","https://opencollective.com/modern-web"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernweb-dev%2Fdev-server-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodernweb-dev%2Fdev-server-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernweb-dev%2Fdev-server-polyfill/lists"}