{"id":15365553,"url":"https://github.com/tunnckocore/rollup-plugin-prepack","last_synced_at":"2025-04-15T07:30:59.356Z","repository":{"id":40950492,"uuid":"90380887","full_name":"tunnckoCore/rollup-plugin-prepack","owner":"tunnckoCore","description":"Rollup plugin for Facebook Prepack - https://prepack.io","archived":false,"fork":false,"pushed_at":"2023-01-04T21:41:40.000Z","size":1782,"stargazers_count":33,"open_issues_count":20,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T12:43:45.896Z","etag":null,"topics":["bundles","facebook","optimizer","prepack","rollup"],"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/tunnckoCore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"tunnckoCore","ko_fi":"tunnckoCore","custom":["https://gumroad.com/l/tunnckoCoreRecurringDonation","https://gumroad.com/l/tunnckoCorePatronLicense"]}},"created_at":"2017-05-05T13:53:29.000Z","updated_at":"2023-05-30T20:10:38.000Z","dependencies_parsed_at":"2023-02-02T21:00:31.097Z","dependency_job_id":null,"html_url":"https://github.com/tunnckoCore/rollup-plugin-prepack","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/tunnckoCore%2Frollup-plugin-prepack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Frollup-plugin-prepack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Frollup-plugin-prepack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tunnckoCore%2Frollup-plugin-prepack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tunnckoCore","download_url":"https://codeload.github.com/tunnckoCore/rollup-plugin-prepack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249026701,"owners_count":21200493,"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":["bundles","facebook","optimizer","prepack","rollup"],"created_at":"2024-10-01T13:15:03.581Z","updated_at":"2025-04-15T07:30:59.029Z","avatar_url":"https://github.com/tunnckoCore.png","language":"JavaScript","readme":"\n\n# rollup-plugin-prepack [![npm version][npmv-img]][npmv-url] [![License][license-img]][license-url]\n\n\u003e Rollup plugin for Facebook Prepack - https://prepack.io\n\nPlease consider following this project's author, [Charlike Mike Reagent](https://github.com/tunnckoCore), and :star: the project to show your :heart: and support.\n\n\u003cdiv id=\"readme\"\u003e\u003c/div\u003e\n\n[![Code style][codestyle-img]][codestyle-url]\n[![CircleCI linux build][linuxbuild-img]][linuxbuild-url]\n[![CodeCov coverage status][codecoverage-img]][codecoverage-url]\n[![DavidDM dependency status][dependencies-img]][dependencies-url]\n[![Renovate App Status][renovateapp-img]][renovateapp-url]\n[![Make A Pull Request][prs-welcome-img]][prs-welcome-url]\n[![Time Since Last Commit][last-commit-img]][last-commit-url]\n\n\u003c!-- [![Semantically Released][standard-release-img]][standard-release-url] --\u003e\n\nIf you have any _how-to_ kind of questions, please read the [Contributing Guide][contributing-url] and [Code of Conduct][code_of_conduct-url] documents.\nFor bugs reports and feature requests, [please create an issue][open-issue-url] or ping\n[@tunnckoCore](https://twitter.com/tunnckoCore) at Twitter.\n\n[![Conventional Commits][ccommits-img]][ccommits-url]\n[![Minimum Required Nodejs][nodejs-img]][npmv-url]\n[![NPM Downloads Monthly][downloads-monthly-img]][npmv-url]\n[![NPM Downloads Total][downloads-total-img]][npmv-url]\n[![Share Love Tweet][twitter-share-img]][twitter-share-url]\n[![Twitter][twitter-img]][twitter-url]\n\nProject is [semantically](https://semver.org) versioned \u0026 almost automatically released from [GitHub Actions](https://github.com/features/actions) / CircleCI.\n\n[![Become a Patron][patreon-img]][patreon-url]\n[![Buy me a Kofi][kofi-img]][kofi-url]\n[![PayPal Donation][paypal-img]][paypal-url]\n[![Bitcoin Coinbase][bitcoin-img]][bitcoin-url]\n[![Keybase PGP][keybase-img]][keybase-url]\n\n| Topic                                                            |                                           Contact |\n| :--------------------------------------------------------------- | ------------------------------------------------: |\n| Any legal or licensing questions, like private or commerical use |           ![tunnckocore_legal][tunnckocore_legal] |\n| For any critical problems and security reports                   |     ![tunnckocore_security][tunnckocore_security] |\n| Consulting, professional support, personal or team training      | ![tunnckocore_consulting][tunnckocore_consulting] |\n| For any questions about Open Source, partnerships and sponsoring | ![tunnckocore_opensource][tunnckocore_opensource] |\n\n\u003c!-- Logo when needed:\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tunnckoCore/rollup-plugin-prepack\"\u003e\n    \u003cimg src=\"./media/logo.png\" width=\"85%\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n--\u003e\n\n\u003c!--\n\n--\u003e\n\n## Table of Contents\n\n- [Install](#install)\n- [Usage](#usage)\n- [See Also](#see-also)\n- [Contributing](#contributing)\n  * [Guides and Community](#guides-and-community)\n  * [Support the project](#support-the-project)\n  * [OPEN Open Source](#open-open-source)\n  * [Wonderful Contributors](#wonderful-contributors)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nThis project requires [**Node.js**](https://nodejs.org) **\u003e=10.13** _(see [Support \u0026 Release Policy](https://github.com/tunnckoCoreLabs/support-release-policy))_. Install it using\n[**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).\u003cbr\u003e\n_We highly recommend to use Yarn when you think to contribute to this project._\n\n```bash\n$ yarn add -D rollup-plugin-prepack prepack\n```\n\n## Usage\n\u003e For more use-cases see the [tests](test.js)\n\n```js\nconst prepack = require('rollup-plugin-prepack')\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/optimized.js'\n  },\n  plugins: [prepack({\n    some: 'prepack options'\n  })]\n}\n```\n\n\u003c!--\n() =\u003e include(process.cwd() + '/.verb.md')\n --\u003e\n\n**[back to top](#readme)**\n\n## See Also\n\nSome of these projects are used here or were inspiration for this one, others are just related. So, thanks for your existance!\n\n- [always-done](https://www.npmjs.com/package/always-done): Handle completion and errors with elegance! Support for streams, callbacks… [more](https://github.com/hybridables/always-done#readme) | [homepage](https://github.com/hybridables/always-done#readme \"Handle completion and errors with elegance! Support for streams, callbacks, promises, child processes, async/await and sync functions. A drop-in replacement for [async-done][] - pass 100% of its tests plus more\")\n- [dush-router](https://www.npmjs.com/package/dush-router): A simple regex-based router for `dush`, `base`, `minibase` and anything… [more](https://github.com/tunnckocore/dush-router#readme) | [homepage](https://github.com/tunnckocore/dush-router#readme \"A simple regex-based router for `dush`, `base`, `minibase` and anything based on them. Works on Browser and Node.js\")\n- [dush](https://www.npmjs.com/package/dush): Microscopic \u0026 functional event emitter in ~350 bytes, extensible through… [more](https://github.com/tunnckocore/dush#readme) | [homepage](https://github.com/tunnckocore/dush#readme \"Microscopic \u0026 functional event emitter in ~350 bytes, extensible through plugins\")\n- [gibon](https://www.npmjs.com/package/gibon): Functional client-side router in ~570 bytes, built on HTML5 History… [more](https://github.com/tunnckoCore/gibon#readme) | [homepage](https://github.com/tunnckoCore/gibon#readme \"Functional client-side router in ~570 bytes, built on HTML5 History API\")\n- [minibase](https://www.npmjs.com/package/minibase): Minimalist alternative for Base. Build complex APIs with small units… [more](https://github.com/node-minibase/minibase#readme) | [homepage](https://github.com/node-minibase/minibase#readme \"Minimalist alternative for Base. Build complex APIs with small units called plugins. Works well with most of the already existing [base][] plugins.\")\n- [try-catch-core](https://www.npmjs.com/package/try-catch-core): Low-level package to handle completion and errors of sync or… [more](https://github.com/hybridables/try-catch-core#readme) | [homepage](https://github.com/hybridables/try-catch-core#readme \"Low-level package to handle completion and errors of sync or asynchronous functions, using [once][] and [dezalgo][] libs. Useful for and used in higher-level libs such as [always-done][] to handle completion of anything.\")\n\n**[back to top](#readme)**\n\n## Contributing\n\n### Guides and Community\n\nPlease read the [Contributing Guide][contributing-url] and [Code of Conduct][code_of_conduct-url] documents for advices.\n\nFor bug reports and feature requests, please join our [community][community-url] forum and open a thread there with prefixing the title of the thread with the name of the project if there's no separate channel for it.\n\nConsider reading the [Support and Release Policy](https://github.com/tunnckoCoreLabs/support-release-policy) guide if you are interested in what are the supported Node.js versions and how we proceed. In short, we support latest two even-numbered Node.js release lines.\n\n### Support the project\n\n[Become a Partner or Sponsor?][patreon-url] :dollar: Check the **Partner**, **Sponsor** or **Omega-level** tiers! :tada: You can get your company logo, link \u0026 name on this file. It's also rendered on package page in [npmjs.com][npmv-url] and [yarnpkg.com](https://yarnpkg.com/en/package/rollup-plugin-prepack) sites too! :rocket:\n\nNot financial support? Okey! [Pull requests](https://github.com/tunnckoCoreLabs/contributing#opening-a-pull-request), stars and all kind of [contributions](https://opensource.guide/how-to-contribute/#what-it-means-to-contribute) are always\nwelcome. :sparkles:\n\n\u003c!--\n### OPEN Open Source\n\nThis project is following [OPEN Open Source](http://openopensource.org) model\n\n\u003e Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is built on collective efforts and it's not strongly guarded by its founders.\n\nThere are a few basic ground-rules for its contributors\n\n1. Any **significant modifications** must be subject to a pull request to get feedback from other contributors.\n2. [Pull requests](https://github.com/tunnckoCoreLabs/contributing#opening-a-pull-request) to get feedback are _encouraged_ for any other trivial contributions, but are not required.\n3. Contributors should attempt to adhere to the prevailing code-style and development workflow.\n--\u003e\n\n### Wonderful Contributors\n\nThanks to the hard work of these wonderful people this project is alive! It follows the\n[all-contributors](https://github.com/kentcdodds/all-contributors) specification.\nDon't hesitate to add yourself to that list if you have made any contribution! ;) [See how,\nhere](https://github.com/jfmengels/all-contributors-cli#usage).\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n| [\u003cimg src=\"https://avatars3.githubusercontent.com/u/5038030?v=4\" width=\"120px;\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCharlike Mike Reagent\u003c/b\u003e\u003c/sub\u003e](https://tunnckocore.com)\u003cbr /\u003e[💻](https://github.com/tunnckoCore/rollup-plugin-prepack/commits?author=tunnckoCore \"Code\") [📖](https://github.com/tunnckoCore/rollup-plugin-prepack/commits?author=tunnckoCore \"Documentation\") [💬](#question-tunnckoCore \"Answering Questions\") [👀](#review-tunnckoCore \"Reviewed Pull Requests\") [🔍](#fundingFinding-tunnckoCore \"Funding Finding\") |\n| :---: |\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nConsider showing your [support](#support-the-project) to them. :sparkling_heart:\n\n**[back to top](#readme)**\n\n## License\n\nCopyright (c) 2017-present, [Charlike Mike Reagent](https://tunnckocore.com) `\u003copensource@tunnckocore.com\u003e` \u0026 [contributors](#wonderful-contributors).\u003cbr\u003e\nReleased under the [MIT License][license-url].\n\n[contributing-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/blob/master/CONTRIBUTING.md\n[code_of_conduct-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/blob/master/CODE_OF_CONDUCT.md\n\n\u003c!-- Heading badges --\u003e\n\n[npmv-url]: https://www.npmjs.com/package/rollup-plugin-prepack\n[npmv-img]: https://badgen.net/npm/v/rollup-plugin-prepack?icon=npm\n\n[nodejs-img]: https://badgen.net/badge/node/\u003e=10.13/green\n\n[ghrelease-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/releases/latest\n[ghrelease-img]: https://badgen.net/github/release/tunnckoCore/rollup-plugin-prepack?icon=github\n\n[license-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/blob/master/packages/rollup-plugin-prepack/LICENSE\n[license-img]: https://badgen.net/npm/license/rollup-plugin-prepack\n\n\u003c!-- Front line badges --\u003e\n\n[codestyle-url]: https://github.com/airbnb/javascript\n[codestyle-img]: https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb\n[linuxbuild-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/actions\n[linuxbuild-img]: https://badgen.net/circleci/github/tunnckoCore/rollup-plugin-prepack/master?label=build\u0026icon=circleci\n[codecoverage-url]: https://codecov.io/gh/tunnckoCore/rollup-plugin-prepack\n\n[codecoverage-img]: https://badgen.net/badge/coverage/unknown/grey?icon=codecov\n\n[dependencies-url]: https://david-dm.org/tunnckoCore/rollup-plugin-prepack\n[dependencies-img]: https://badgen.net/david/dep/tunnckoCore/rollup-plugin-prepack?label=deps\n[ccommits-url]: https://conventionalcommits.org/\n[ccommits-img]: https://badgen.net/badge/conventional%20commits/v1.0.0/green\n[standard-release-url]: https://github.com/standard-release/standard-release\n[standard-release-img]: https://badgen.net/badge/semantically/released/05c5ff\n[community-img]: https://badgen.net/badge/join/community/7b16ff\n[community-url]: https://github.com/tunnckocorehq/community\n[last-commit-img]: https://badgen.net/github/last-commit/tunnckoCore/rollup-plugin-prepack/master\n[last-commit-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/commits/master\n\n[downloads-weekly-img]: https://badgen.net/npm/dw/rollup-plugin-prepack?icon=npm\n[downloads-monthly-img]: https://badgen.net/npm/dm/rollup-plugin-prepack?icon=npm\n[downloads-total-img]: https://badgen.net/npm/dt/rollup-plugin-prepack?icon=npm\n\n[renovateapp-url]: https://renovatebot.com\n[renovateapp-img]: https://badgen.net/badge/renovate/enabled/green\n[prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green\n[prs-welcome-url]: http://makeapullrequest.com\n\n\u003c!-- TODO: update icon --\u003e\n\n[paypal-url]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=HYJJEZNSGAPGC\u0026source=url\n[paypal-img]: https://badgen.net/badge/PayPal/donate/003087?icon=https://simpleicons.now.sh/paypal/fff\n\n\u003c!-- TODO: update icon --\u003e\n\n[kofi-url]: https://ko-fi.com/tunnckoCore\n[kofi-img]: https://badgen.net/badge/Buy%20me/a%20coffee/29abe0c2?icon=https://rawcdn.githack.com/tunnckoCore/badgen-icons/f8264c6414e0bec449dd86f2241d50a9b89a1203/icons/kofi.svg\n\n\u003c!-- TODO: update icon --\u003e\n\n[bitcoin-url]: https://www.blockchain.com/btc/payment_request?address=3QNHKun1K1SUui1b4Z3KEGPPsWC1TgtnqA\u0026message=Open+Source+Software\u0026amount_local=10\u0026currency=USD\n[bitcoin-img]: https://badgen.net/badge/Bitcoin%20tip/3QNHKun...b4Z3KEGPPsWC1TgtnqA/yellow?icon=https://simpleicons.now.sh/bitcoin/fff\n[keybase-url]: https://keybase.io/tunnckoCore\n[keybase-img]: https://badgen.net/keybase/pgp/tunnckoCore\n[twitter-url]: https://twitter.com/tunnckoCore\n[twitter-img]: https://badgen.net/twitter/follow/tunnckoCore?icon=twitter\u0026color=1da1f2\n[patreon-url]: https://www.patreon.com/bePatron?u=5579781\n[patreon-img]: https://badgen.net/badge/Become/a%20patron/F96854?icon=patreon\n\n\u003c!-- [patreon-img]: https://badgen.net/badge/Patreon/tunnckoCore/F96854?icon=patreon --\u003e\n\n[patreon-sponsor-img]: https://badgen.net/badge/become/a%20sponsor/F96854?icon=patreon\n\n[twitter-share-url]: https://twitter.com/intent/tweet?text=https://github.com/tunnckoCore/rollup-plugin-prepack/tree/master\u0026via=tunnckoCore\n[twitter-share-img]: https://badgen.net/badge/twitter/share/1da1f2?icon=twitter\n[open-issue-url]: https://github.com/tunnckoCore/rollup-plugin-prepack/issues/new\n[tunnckocore_legal]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/legal/tunnckocore?label\u0026color=A56016\u0026icon=https://svgshare.com/i/Dt6.svg\n[tunnckocore_consulting]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/consulting/tunnckocore?label\u0026color=07ba96\u0026icon=https://svgshare.com/i/Dt6.svg\n[tunnckocore_security]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/security/tunnckocore?label\u0026color=ed1848\u0026icon=https://svgshare.com/i/Dt6.svg\n[tunnckocore_opensource]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/opensource/tunnckocore?label\u0026color=ff7a2f\u0026icon=https://svgshare.com/i/Dt6.svg\n[tunnckocore_newsletter]: https://badgen.net/https/liam-badge-daknys6gadky.runkit.sh/com/newsletter/tunnckocore?label\u0026color=5199FF\u0026icon=https://svgshare.com/i/Dt6.svg\n\n[always-done]: https://github.com/hybridables/always-done\n[async-done]: https://github.com/gulpjs/async-done\n[base]: https://github.com/node-base/base\n[charlike]: https://github.com/tunnckoCoreLabs/charlike\n[commitizen]: https://github.com/commitizen/cz-cli\n[dezalgo]: https://github.com/npm/dezalgo\n[once]: https://github.com/isaacs/once\n[standard-version]: https://github.com/conventional-changelog/standard-version\n[verb-generate-readme]: https://github.com/verbose/verb-generate-readme\n[verb]: https://github.com/verbose/verb","funding_links":["https://patreon.com/tunnckoCore","https://ko-fi.com/tunnckoCore","https://gumroad.com/l/tunnckoCoreRecurringDonation","https://gumroad.com/l/tunnckoCorePatronLicense","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=HYJJEZNSGAPGC\u0026source=url","https://www.patreon.com/bePatron?u=5579781"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Frollup-plugin-prepack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftunnckocore%2Frollup-plugin-prepack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftunnckocore%2Frollup-plugin-prepack/lists"}