{"id":20509534,"url":"https://github.com/aminnairi/rollup-plugin-external","last_synced_at":"2026-04-20T07:33:08.753Z","repository":{"id":54578093,"uuid":"337490000","full_name":"aminnairi/rollup-plugin-external","owner":"aminnairi","description":"Rollup plugin for automatically computing your external dependencies.","archived":false,"fork":false,"pushed_at":"2021-02-09T19:00:54.000Z","size":89,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"development","last_synced_at":"2025-03-02T11:41:51.823Z","etag":null,"topics":["dependencies","external","plugin","rollup"],"latest_commit_sha":null,"homepage":"https://npmjs.com/@aminnairi/rollup-plugin-external","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/aminnairi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-09T17:55:34.000Z","updated_at":"2021-07-23T14:47:24.000Z","dependencies_parsed_at":"2022-08-13T20:20:31.036Z","dependency_job_id":null,"html_url":"https://github.com/aminnairi/rollup-plugin-external","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/aminnairi%2Frollup-plugin-external","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Frollup-plugin-external/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Frollup-plugin-external/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminnairi%2Frollup-plugin-external/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminnairi","download_url":"https://codeload.github.com/aminnairi/rollup-plugin-external/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242112213,"owners_count":20073549,"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":["dependencies","external","plugin","rollup"],"created_at":"2024-11-15T20:25:17.714Z","updated_at":"2026-04-20T07:33:08.715Z","avatar_url":"https://github.com/aminnairi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @aminnairi/rollup-plugin-external\n\n![Lint](https://github.com/aminnairi/rollup-plugin-external/workflows/Lint/badge.svg) ![Test](https://github.com/aminnairi/rollup-plugin-external/workflows/Test/badge.svg) ![Package](https://github.com/aminnairi/rollup-plugin-external/workflows/Package/badge.svg)\n\nRollup plugin for automatically computing your external dependencies.\n\n## Summary\n\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [ECMAScript](#ecmascript)\n  - [TypeScript](#typescript)\n- [Options](#options)\n  - [exclude](#exclude)\n  - [include](#include)\n  - [packageJsonPath](#packagejsonpath)\n  - [withBuiltinModules](#withbuiltinmodules)\n  - [withBundledDependencies](#withbundleddependencies)\n  - [withDependencies](#withdependencies)\n  - [withOptionalDependencies](#withoptionaldependencies)\n  - [withPeerDependencies](#withpeerdependencies)\n- [Changelog](#changelog)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Requirements\n\n- [Node.js](https://nodejs.org/en/)\n- [NPM](https://www.npmjs.com/)\n\n## Installation\n\n```console\n$ npm install --save-dev @aminnairi/rollup-plugin-external\n```\n\n## Usage\n\n### ECMAScript\n\n```typescript\nimport {external} from \"@aminnairi/rollup-plugin-external\";\n\nexport default {\n  plugins: [\n    external()\n  ]\n};\n```\n\n### TypeScript\n\n```typescript\nimport {external, ExternalOptions} from \"@aminnairi/rollup-plugin-external\";\n\nconst externalOptions: ExternalOptions = {\n  withBuiltinModules: false\n};\n\nexport default {\n  plugins: [\n    external(externalOptions)\n  ]\n}\n```\n\n## Options\n\n### exclude\n\nModules to exclude from the Rollup's `external` configuration (default to `[]`).\n\n```typescript\nexternal({\n  exclude: [\"package\", \"to\", \"exclude\"]\n});\n```\n\n### include\n\nModules to include in the Rollup's `external` configuration (default to `[]`).\n\n```typescript\nexternal({\n  include: [\"package\", \"to\", \"include\"]\n});\n```\n\n### packageJsonPath\n\nPath to the module configuration (default to `package.json`).\n\n```typescript\nexternal({\n  packageJsonPath: \"./settings/package.production.json\"\n});\n```\n\n### withBuiltinModules\n\nWhether to include or not Node.js builtin modules in the Rollup's `external` configuration (default to `true`).\n\n```typescript\nexternal({\n  withBuiltinModules: false\n});\n```\n\n### withBundledDependencies\n\nWhether to include or not `bundledDependencies` in the Rollup's `external` configuration (default to `true`).\n\n```typescript\nexternal({\n  withBundledDependencies: false\n});\n```\n\n### withDependencies\n\nWhether to include or not `dependencies` in the Rollup's `external` configuration (default to `true`).\n\n```typescript\nexternal({\n  withDependencies: false\n});\n```\n\n### withOptionalDependencies\n\nWhether to include or not `optionalDependencies` in the Rollup's `external` configuration (default to `true`).\n\n```typescript\nexternal({\n  withOptionalDependencies: false\n});\n```\n\n### withPeerDependencies\n\nWhether to include or not `peerDependencies` in the Rollup's `external` configuration (default to `true`).\n\n```typescript\nexternal({\n  withPeerDependencies: false\n});\n```\n\n## Changelog\n\nSee [`CHANGELOG.md`](./CHANGELOG.md)\n\n## Contributing\n\nSee [`CONTRIBUTING.md`](./CONTRIBUTING.md)\n\n## License\n\nSee [`LICENSE`](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Frollup-plugin-external","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminnairi%2Frollup-plugin-external","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminnairi%2Frollup-plugin-external/lists"}