{"id":22697954,"url":"https://github.com/gem-mine/rollup-chain","last_synced_at":"2025-08-17T05:06:54.790Z","repository":{"id":41614321,"uuid":"274587824","full_name":"gem-mine/rollup-chain","owner":"gem-mine","description":"Use a chaining API to generate and simplify the modification of rollup config","archived":false,"fork":false,"pushed_at":"2023-01-07T19:26:07.000Z","size":2134,"stargazers_count":0,"open_issues_count":19,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T18:34:55.547Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gem-mine.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-24T06:00:39.000Z","updated_at":"2021-05-31T03:23:12.000Z","dependencies_parsed_at":"2023-02-07T22:46:12.306Z","dependency_job_id":null,"html_url":"https://github.com/gem-mine/rollup-chain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gem-mine/rollup-chain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gem-mine%2Frollup-chain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gem-mine%2Frollup-chain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gem-mine%2Frollup-chain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gem-mine%2Frollup-chain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gem-mine","download_url":"https://codeload.github.com/gem-mine/rollup-chain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gem-mine%2Frollup-chain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807934,"owners_count":24649346,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-12-10T05:16:14.007Z","updated_at":"2025-08-17T05:06:54.762Z","avatar_url":"https://github.com/gem-mine.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-chain\n\n类似webpackChain, 支持v2.18.1\n\n# Demo\n\n```js\nconst RollupChainConfig = require('@gem-mine/rollup-chain')\nconst config = new RollupChainConfig()\n\nconfig.input('index')\n  .add('index', '/x.js')\n\nconfig\n  .output(currentTarget)\n    .dir(api.resolve(options.outputDir))\n    .entryFileNames(outputFilename)\n    .chunkFileNames(outputFilename)\n    .format(currentTarget)\n    .sourcemap(needSourceMap)\n\nconfig.plugin('node-resolve')\n  .use(nodeResolve, [{\n    rootDir: api.resolve('./'),\n    preferBuiltins: !options.browser,\n    browser: options.browser\n  }])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgem-mine%2Frollup-chain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgem-mine%2Frollup-chain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgem-mine%2Frollup-chain/lists"}