{"id":13452200,"url":"https://github.com/gajus/prepack-webpack-plugin","last_synced_at":"2025-05-15T23:03:12.157Z","repository":{"id":57329814,"uuid":"90177005","full_name":"gajus/prepack-webpack-plugin","owner":"gajus","description":"A webpack plugin for prepack.","archived":false,"fork":false,"pushed_at":"2018-10-07T19:14:38.000Z","size":177,"stargazers_count":1034,"open_issues_count":15,"forks_count":46,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-15T23:02:05.827Z","etag":null,"topics":["plugin","prepack","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gajus.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":"2017-05-03T17:46:31.000Z","updated_at":"2025-04-18T11:04:15.000Z","dependencies_parsed_at":"2022-09-06T20:30:51.015Z","dependency_job_id":null,"html_url":"https://github.com/gajus/prepack-webpack-plugin","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/gajus%2Fprepack-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fprepack-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fprepack-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gajus%2Fprepack-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gajus","download_url":"https://codeload.github.com/gajus/prepack-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436944,"owners_count":22070946,"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":["plugin","prepack","webpack"],"created_at":"2024-07-31T07:01:16.749Z","updated_at":"2025-05-15T23:03:11.992Z","avatar_url":"https://github.com/gajus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# prepack-webpack-plugin\n\n[![Travis build status](http://img.shields.io/travis/gajus/prepack-webpack-plugin/master.svg?style=flat-square)](https://travis-ci.org/gajus/prepack-webpack-plugin)\n[![Coveralls](https://img.shields.io/coveralls/gajus/prepack-webpack-plugin.svg?style=flat-square)](https://github.com/gajus/prepack-webpack-plugin)\n[![NPM version](http://img.shields.io/npm/v/prepack-webpack-plugin.svg?style=flat-square)](https://www.npmjs.org/package/prepack-webpack-plugin)\n[![Canonical Code Style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)\n\nA webpack plugin for [prepack](https://prepack.io/).\n\n## Usage\n\n1. Install `prepack-webpack-plugin`.\n1. Add an instance of the plugin to the webpack [plugin configuration](https://webpack.js.org/configuration/plugins/).\n\n\u003e Note that this plugin only works with **webpack 4.x**\n\n### Configuration\n\n|Name|Description|Default|\n|---|---|---|\n|`test`|A regex used to match the files.|`/\\.js($\\|\\?)/i`|\n|`prepack`|Prepack configuration. See [Prepack documentation](https://prepack.io/getting-started.html#options).|\n\n## Example\n\n```js\nimport PrepackWebpackPlugin from 'prepack-webpack-plugin';\n\nconst configuration = {};\n\nmodule.exports = {\n  // ...\n  plugins: [\n    new PrepackWebpackPlugin(configuration)\n  ]\n};\n\n```\n\n\u003e If you are using commonjs, you must explicitly reference the `.default` property of the module, e.g.\n\u003e\n\u003e ```js\n\u003e const PrepackWebpackPlugin = require('prepack-webpack-plugin').default;\n\u003e\n\u003e const configuration = {};\n\u003e\n\u003e module.exports = {\n\u003e   // ...\n\u003e   plugins: [\n\u003e     new PrepackWebpackPlugin(configuration)\n\u003e   ]\n\u003e };\n\u003e\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgajus%2Fprepack-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgajus%2Fprepack-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgajus%2Fprepack-webpack-plugin/lists"}