{"id":17958309,"url":"https://github.com/sheerun/targets-webpack-plugin","last_synced_at":"2025-07-03T13:06:03.901Z","repository":{"id":46059517,"uuid":"131166747","full_name":"sheerun/targets-webpack-plugin","owner":"sheerun","description":"Webpack plugin for transcompilig final bundles so they support legacy browsers","archived":false,"fork":false,"pushed_at":"2021-11-17T00:35:36.000Z","size":24,"stargazers_count":15,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T16:09:12.200Z","etag":null,"topics":["babel","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheerun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-26T14:19:51.000Z","updated_at":"2022-04-21T22:16:51.000Z","dependencies_parsed_at":"2022-09-05T20:41:42.706Z","dependency_job_id":null,"html_url":"https://github.com/sheerun/targets-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sheerun/targets-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Ftargets-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Ftargets-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Ftargets-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Ftargets-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheerun","download_url":"https://codeload.github.com/sheerun/targets-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Ftargets-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262289529,"owners_count":23288107,"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":["babel","webpack","webpack-plugin"],"created_at":"2024-10-29T10:59:24.633Z","updated_at":"2025-07-03T13:06:03.872Z","avatar_url":"https://github.com/sheerun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# targets-webpack-plugin [![npm](https://img.shields.io/npm/v/targets-webpack-plugin.svg)](https://www.npmjs.com/package/targets-webpack-plugin)\n\nA babel plugin for transcompiling final bundles so they support legacy browsers.\n\nThis plugin runs babel and rollup only once per asset, at the end of the compilation process.\n\n## Installation\n\n```\nnpm install --save-dev targets-webpack-plugin\n```\n\nor\n\n```\nyarn add --dev targets-webpack-plugin\n```\n\n## Usage\n\nAdd TargetsPlugin to the list of plugins.\n\n```js\n// next.config.js\nconst TargetsPlugin = require(\"targets-webpack-plugin\");\n\nmodule.exports = {\n  webpack: function (config, { dev }) {\n    if (!dev) {\n      config.plugins.push(new TargetsPlugin({\n        browsers: [\"last 2 versions\", \"chrome \u003e= 41\"]\n      }))\n    }\n    return config\n  }\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Ftargets-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheerun%2Ftargets-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Ftargets-webpack-plugin/lists"}