{"id":26176072,"url":"https://github.com/m00nbyte/rollup-plugin-strip-prop-types","last_synced_at":"2026-01-26T21:23:03.020Z","repository":{"id":242587989,"uuid":"810022645","full_name":"m00nbyte/rollup-plugin-strip-prop-types","owner":"m00nbyte","description":"Removes propTypes, defaultProps, and prop-types imports, with TypeScript support and custom import paths","archived":false,"fork":false,"pushed_at":"2024-06-04T21:31:34.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-10T09:59:34.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/m00nbyte.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2024-06-03T22:47:01.000Z","updated_at":"2024-06-04T21:29:36.000Z","dependencies_parsed_at":"2024-06-03T23:12:36.824Z","dependency_job_id":"40020235-4f75-4375-a8f8-ad48976a2a8a","html_url":"https://github.com/m00nbyte/rollup-plugin-strip-prop-types","commit_stats":null,"previous_names":["m00nbyte/rollup-plugin-strip-prop-types"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m00nbyte%2Frollup-plugin-strip-prop-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m00nbyte%2Frollup-plugin-strip-prop-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m00nbyte%2Frollup-plugin-strip-prop-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m00nbyte%2Frollup-plugin-strip-prop-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m00nbyte","download_url":"https://codeload.github.com/m00nbyte/rollup-plugin-strip-prop-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243112143,"owners_count":20238185,"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":"2025-03-11T21:00:41.974Z","updated_at":"2026-01-26T21:23:02.654Z","avatar_url":"https://github.com/m00nbyte.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/m00nbyte"],"categories":["Plugins"],"sub_categories":["Output"],"readme":"# rollup-plugin-strip-prop-types\n\n[![npm version](https://img.shields.io/npm/v/@m00nbyte/rollup-plugin-strip-prop-types.svg)](https://www.npmjs.org/package/@m00nbyte/rollup-plugin-strip-prop-types) [![npm downloads](https://img.shields.io/npm/dm/@m00nbyte/rollup-plugin-strip-prop-types)](https://www.npmjs.org/package/@m00nbyte/rollup-plugin-strip-prop-types)\n\n---\n\n## Features\n\n-   Remove `propTypes` and `defaultProps` statements from react components\n-   Remove `require` and `import` statements for the `prop-types` package\n-   Custom import paths\n-   TypeScript support\n\n## Installation\n\n```bash\nnpm install -D @m00nbyte/rollup-plugin-strip-prop-types\nyarn add -D @m00nbyte/rollup-plugin-strip-prop-types\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport stripPropTypes from '@m00nbyte/rollup-plugin-strip-prop-types';\n\nexport default {\n    plugins: [\n        stripPropTypes({\n            include: ['**/*.jsx', '**/*.tsx'],\n            exclude: ['node_modules/**'],\n            imports: ['/some_other_module'],\n            sourceMap: true\n        })\n    ]\n};\n```\n\n## Options\n\n### `include`\n\nType: `String | RegExp | Array[...String|RegExp]`\nDefault: `['**/*.jsx', '**/*.tsx']`\u003cbr /\u003e\n\nA [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should operate on. If defined, it will overwrite the default values.\n\n### `exclude`\n\nType: `String | RegExp | Array[...String|RegExp]`\nDefault: `['node_modules/**']`\u003cbr /\u003e\n\nA [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should ignore. If defined, it will overwrite the default values.\n\n### `imports`\n\nType: `Array[...String]`\nDefault: `['prop-types']`\u003cbr /\u003e\n\nBy default only `require` and `import` statements for the `prop-types` package are removed. Additional module paths can be defined. These paths will be merged with the default values without duplicates.\n\n### `sourceMap`\n\nType: `Boolean`\nDefault: `true`\u003cbr /\u003e\n\nSet to `false` if source maps are not used.\n\n## Contribution\n\nFeel free to submit issues or pull requests.\n\n## Like my work?\n\nThis project needs a :star: from you.\nDon't forget to leave a star.\n\n\u003ca href=\"https://www.buymeacoffee.com/m00nbyte\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" width=\"217\" height=\"60\"\u003e\n\u003c/a\u003e\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm00nbyte%2Frollup-plugin-strip-prop-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm00nbyte%2Frollup-plugin-strip-prop-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm00nbyte%2Frollup-plugin-strip-prop-types/lists"}