{"id":19408193,"url":"https://github.com/susnux/webpack-plugin-corejs","last_synced_at":"2025-04-24T09:31:51.931Z","repository":{"id":65163759,"uuid":"584912388","full_name":"susnux/webpack-plugin-corejs","owner":"susnux","description":"⚡ bundle core-js polyfills for webpack projects","archived":false,"fork":false,"pushed_at":"2025-04-13T09:52:45.000Z","size":474,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-13T10:40:57.856Z","etag":null,"topics":["corejs","nodejs","polyfill","webpack","webpack-plugin","webpack5"],"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/susnux.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/CC0-1.0.txt","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}},"created_at":"2023-01-03T20:51:53.000Z","updated_at":"2024-12-05T11:05:37.000Z","dependencies_parsed_at":"2023-10-01T15:29:27.971Z","dependency_job_id":"fae4515a-b61a-4b96-82fe-9e818a563e93","html_url":"https://github.com/susnux/webpack-plugin-corejs","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susnux%2Fwebpack-plugin-corejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susnux%2Fwebpack-plugin-corejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susnux%2Fwebpack-plugin-corejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/susnux%2Fwebpack-plugin-corejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/susnux","download_url":"https://codeload.github.com/susnux/webpack-plugin-corejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250600716,"owners_count":21457017,"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":["corejs","nodejs","polyfill","webpack","webpack-plugin","webpack5"],"created_at":"2024-11-10T12:05:37.380Z","updated_at":"2025-04-24T09:31:51.465Z","avatar_url":"https://github.com/susnux.png","language":"TypeScript","readme":"\u003c!-- \nSPDX-FileCopyrightText: 2023 Ferdinand Thiessen \u003crpm@fthiessen.de\u003e\nSPDX-License-Identifier: EUPL-1.2\n---\u003e\n[![GitHub package.json version (main branch)](https://img.shields.io/github/package-json/v/susnux/webpack-plugin-corejs)](https://github.com/susnux/webpack-plugin-corejs/releases)\n[![GitHub Workflow Status (main branch)](https://img.shields.io/github/actions/workflow/status/susnux/webpack-plugin-corejs/node.yml?branch=main)](https://github.com/susnux/webpack-plugin-corejs/actions/workflows/node.yml)\n[![license](https://img.shields.io/npm/l/webpack-plugin-corejs?color=blue)](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)\n\n# webpack-plugin-corejs\nA webpack plugin for injecting [core-js](https://github.com/zloirock/core-js) polyfills based\non your browserslist configuration.\n\nThis plugin is essentially a wrapper for core-js-builder for webpack.\n\nOne usecase is that you are not using babel, but [esbuild](https://github.com/privatenumber/esbuild-loader)\nfor transpiling, e.g. using the [ESBuildMinifyPlugin](https://github.com/privatenumber/esbuild-loader#js-minification-eg-terser)\nwith your supported browsers is much faster then using Babel, but it only transpiles the syntax and does not add any polyfills.\nSo you would need to add e.g. *core-js* polyfills manually... or... use this plugin.\n\n### Compatibility\nThis version should work with *webpack 4* as well as with *webpack 5*.\n\n## Getting started\n### 🚀 Installation\n\n```shell\nnpm i -D webpack-plugin-corejs\n```\n\n### 🔧 Configuration\nIn your `webpack.config.js`:\n```js\nconst CoreJSPlugin = require('webpack-plugin-corejs')\n\nmodule.exports = {\n  //...\n  plugins: [\n    new CoreJSPlugin({\n        // Options\n    }),\n    // ...\n  ]\n  // ...\n}\n```\n\nOr in your `webpack.config.mjs`:\n```js\nimport { CoreJSPlugin } from 'webpack-plugin-corejs'\n\nexport default {\n  //...\n  plugins: [\n    new CoreJSPlugin({\n        // Options\n    }),\n    // ...\n  ]\n  // ...\n}\n```\n\n### 🛠️ Options\nAll options are optionally, if no options are given the default is to use `{ modules: 'core-js/es' }`.\n\nYou can omit setting `targets` in this case browserslist is used (`package.json` or `.browserslistrc`).\n\n```ts\n{\n  /** CoreJS modules to use, defaults to 'core-js/es' */\n  modules?: string | readonly string[] | readonly RegExp[],\n  /** CoreJS modules to exclude */\n  exclude?: string | readonly string[] | readonly RegExp[],\n  /** Overide browserslist targets */\n  targets?: string | readonly string[] | Record\u003cstring, string | readonly string[]\u003e\n  /** Add comment which modules are used within bundle */\n  summary?: {\n    size: boolean\n    modules: boolean\n  }\n}\n```\n\n## Changelog\nSee [CHANGELOG](CHANGELOG.md)\n\n## License\n[EUPL-1.2](LICENSES/EUPL-1.2.txt)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusnux%2Fwebpack-plugin-corejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusnux%2Fwebpack-plugin-corejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusnux%2Fwebpack-plugin-corejs/lists"}