{"id":21565138,"url":"https://github.com/cfware/babel-plugin-remove-ungap","last_synced_at":"2025-04-10T13:10:14.485Z","repository":{"id":66026890,"uuid":"167212739","full_name":"cfware/babel-plugin-remove-ungap","owner":"cfware","description":"Remove @ungap ponyfills","archived":false,"fork":false,"pushed_at":"2020-06-01T01:24:44.000Z","size":38,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T03:01:58.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cfware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"tidelift":"npm/babel-plugin-remove-ungap"}},"created_at":"2019-01-23T16:14:14.000Z","updated_at":"2020-05-19T11:21:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"faf5022f-d099-4bff-9164-b782e99a3f41","html_url":"https://github.com/cfware/babel-plugin-remove-ungap","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.2142857142857143,"last_synced_commit":"0639179fa7b6c09ce587cbf918ed52296d9dc226"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fbabel-plugin-remove-ungap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fbabel-plugin-remove-ungap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fbabel-plugin-remove-ungap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Fbabel-plugin-remove-ungap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/babel-plugin-remove-ungap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247737787,"owners_count":20987735,"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-24T10:18:32.466Z","updated_at":"2025-04-10T13:10:14.469Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# babel-plugin-remove-ungap [![NPM Version][npm-image]][npm-url]\n\nRemove @ungap ponyfills\n\n\n## Usage\n\nAdd `remove-ungap` to your babelrc plugins if the ponyfills are not needed by your\nbrowser target.  This could be due to only targeting modern browsers or because\nyour project already polyfills the browser.\n\nThis plugin works with CJS and ES modules before bundling.  It can be run by\n`rollup-plugin-babel` before import or require statements are altered.\n\n\n### `exclude` option\n\nYou can add the `exclude` option to block removal/processing of specific @ungap modules.\n\n```js\n{\n\tplugins: [\n\t\t['remove-ungap', {\n\t\t\texclude: [\n\t\t\t\t'@ungap/essential-map'\n\t\t\t]\n\t\t}]\n\t]\n}\n```\n\nThis config will cause any import of `@ungap/essential-map` to be preserved.\n\n\n### `future` option\n\nSome `@ungap` polyfills are needed by most current browsers or did not exist when the\ncurrent semver-major of this plugin was released.  These are only processed if explicitly\nrequested by the `future` option.  For example:\n```js\n{\n\tplugins: [\n\t\t['remove-ungap', {\n\t\t\tfuture: [\n\t\t\t\t'@ungap/from-entries'\n\t\t\t]\n\t\t}]\n\t]\n}\n```\n\nUnknown modules are ignored.\n\n\n### Modules that are removed\n\nModule|Target|Declares variable\n-|-|-\n[@ungap/assign](https://github.com/ungap/assign)|Object.assign|Yes\n[@ungap/array-iterator](https://github.com/ungap/array-iterator)|Array.prototype[Symbol.iterator]|Yes\n[@ungap/custom-event](https://github.com/ungap/custom-event)|CustomEvent\n[@ungap/essential-map](https://github.com/ungap/essential-map)|Map\n[@ungap/essential-set](https://github.com/ungap/essential-set)|Set\n[@ungap/essential-symbol](https://github.com/ungap/essential-symbol)|Symbol\n[@ungap/essential-weakset](https://github.com/ungap/essential-weakset)|WeakSet\n[@ungap/event](https://github.com/ungap/event)|Event\n[@ungap/event-target](https://github.com/ungap/event-target)|EventTarget\n[@ungap/from-entries](https://github.com/ungap/from-entries)|Object.fromEntries|Yes\n[@ungap/global-this](https://github.com/ungap/global-this)|globalThis\n[@ungap/import-node](https://github.com/ungap/import-node)|document.importNode|Yes\n[@ungap/is-array](https://github.com/ungap/is-array)|Array.isArray|Yes\n[@ungap/map](https://github.com/ungap/map)|Map\n[@ungap/promise-all-settled](https://github.com/ungap/promise-all-settled)|Promise.allSettled|Yes\n[@ungap/set](https://github.com/ungap/set)|Set\n[@ungap/template-literal](https://github.com/ungap/template-literal)|val =\u003e val|Yes\n[@ungap/template-tag-arguments](https://github.com/ungap/template-tag-arguments)|(...args) =\u003e args|Yes\n[@ungap/trim](https://github.com/ungap/trim)|String.prototype.trim|Yes\n[@ungap/weakmap](https://github.com/ungap/weakmap)|WeakMap\n[@ungap/weakset](https://github.com/ungap/weakset)|WeakSet\n\n\n### @ungap/create-content is altered\n\n[@ungap/create-content](https://github.com/ungap/create-content) is altered so that\n`HAS_CONTENT` is constant true.  This allows minifiers to strip code that is not useed\nby modern browsers.\n\n\n### Modules that can be removed by the `future` option\n\nModule|Target|Declares variable\n-|-|-\n[@ungap/promise-any](https://github.com/ungap/promise-any)|Promise.any|Yes\n\n\n## `babel-plugin-remove-ungap` for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `babel-plugin-remove-ungap` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-babel-plugin-remove-ungap?utm_source=npm-babel-plugin-remove-ungap\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo)\n\n[npm-image]: https://img.shields.io/npm/v/babel-plugin-remove-ungap.svg\n[npm-url]: https://npmjs.org/package/babel-plugin-remove-ungap\n","funding_links":["https://tidelift.com/funding/github/npm/babel-plugin-remove-ungap","https://tidelift.com/subscription/pkg/npm-babel-plugin-remove-ungap?utm_source=npm-babel-plugin-remove-ungap\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fbabel-plugin-remove-ungap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Fbabel-plugin-remove-ungap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Fbabel-plugin-remove-ungap/lists"}