{"id":13774343,"url":"https://github.com/alex-kinokon/rollup-plugin-ignore","last_synced_at":"2025-07-09T07:09:29.653Z","repository":{"id":65421505,"uuid":"70643506","full_name":"alex-kinokon/rollup-plugin-ignore","owner":"alex-kinokon","description":"Replace a module with an empty object.","archived":false,"fork":false,"pushed_at":"2021-08-26T11:36:53.000Z","size":4,"stargazers_count":26,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-18T20:41:50.930Z","etag":null,"topics":["javascript","rollup","rollup-plugin"],"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/alex-kinokon.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}},"created_at":"2016-10-11T23:24:12.000Z","updated_at":"2022-07-20T11:07:43.000Z","dependencies_parsed_at":"2023-01-22T21:05:10.225Z","dependency_job_id":null,"html_url":"https://github.com/alex-kinokon/rollup-plugin-ignore","commit_stats":null,"previous_names":["proteriax/rollup-plugin-ignore","alexlur/rollup-plugin-ignore"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-kinokon%2Frollup-plugin-ignore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-kinokon%2Frollup-plugin-ignore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-kinokon%2Frollup-plugin-ignore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-kinokon%2Frollup-plugin-ignore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-kinokon","download_url":"https://codeload.github.com/alex-kinokon/rollup-plugin-ignore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245108277,"owners_count":20562019,"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":["javascript","rollup","rollup-plugin"],"created_at":"2024-08-03T17:01:25.859Z","updated_at":"2025-03-23T13:32:16.770Z","avatar_url":"https://github.com/alex-kinokon.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Modules"],"readme":"# rollup-plugin-ignore\n\nPrevent a module from showing up in the output bundle. You will get `export default {}` instead.\n\n## Installation\n\n```\nnpm install --save-dev rollup-plugin-ignore\nyarn add rollup-plugin-ignore --dev\n```\n\n## Usage\n\nLet’s say you want to prevent `fs` and `net` from being bundled:\n\n```javascript\nimport ignore from \"rollup-plugin-ignore\"\n\nexport default {\n  input: \"main.js\",\n  plugins: [ignore([\"fs\", \"net\"])],\n}\n```\n\nTo ignore all built-in Node.js modules, use the following:\n\n```javascript\nimport { builtinModules } from \"module\"\nimport ignore from \"rollup-plugin-ignore\"\n\nexport default {\n  input: \"main.js\",\n  plugins: [\n    ignore(builtinModules),\n  ],\n}),\n```\n\n**Note:** If you are having problems with using `@rollup/plugin-commonjs` with this plugin, try\nthe temporary fix:\n\n```javascript\nignore(builtinModules, { commonjsBugFix: true })\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-kinokon%2Frollup-plugin-ignore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-kinokon%2Frollup-plugin-ignore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-kinokon%2Frollup-plugin-ignore/lists"}