{"id":22381174,"url":"https://github.com/ex-machine/rollup-plugin-ts-treeshaking","last_synced_at":"2025-08-18T09:08:22.882Z","repository":{"id":60775148,"uuid":"152953705","full_name":"ex-machine/rollup-plugin-ts-treeshaking","owner":"ex-machine","description":"Improve TypeScript tree-shaking with Rollup and UglifyJS/Terser ","archived":false,"fork":false,"pushed_at":"2020-09-25T21:43:10.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T12:29:33.685Z","etag":null,"topics":["minify","rollup","rollup-plugin","rollup-plugin-typescript","terser","tree-shaking","typescript","uglify","uglifyjs"],"latest_commit_sha":null,"homepage":null,"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/ex-machine.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":"2018-10-14T08:24:22.000Z","updated_at":"2020-09-25T21:43:13.000Z","dependencies_parsed_at":"2022-10-04T16:37:06.729Z","dependency_job_id":null,"html_url":"https://github.com/ex-machine/rollup-plugin-ts-treeshaking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ex-machine/rollup-plugin-ts-treeshaking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ex-machine%2Frollup-plugin-ts-treeshaking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ex-machine%2Frollup-plugin-ts-treeshaking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ex-machine%2Frollup-plugin-ts-treeshaking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ex-machine%2Frollup-plugin-ts-treeshaking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ex-machine","download_url":"https://codeload.github.com/ex-machine/rollup-plugin-ts-treeshaking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ex-machine%2Frollup-plugin-ts-treeshaking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270968654,"owners_count":24677143,"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-18T02:00:08.743Z","response_time":89,"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":["minify","rollup","rollup-plugin","rollup-plugin-typescript","terser","tree-shaking","typescript","uglify","uglifyjs"],"created_at":"2024-12-05T00:07:40.874Z","updated_at":"2025-08-18T09:08:22.859Z","avatar_url":"https://github.com/ex-machine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-ts-treeshaking\n\nImprove TypeScript tree-shaking with Rollup and UglifyJS/Terser.\n\nUses `rollup-plugin-replace` to replace `/** @class */` annotations generated by TypeScript with `/*@__PURE__*/` that can be used by `uglifyjs`, `uglify-es` and `terser` for dead code elimination.\n\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n## Installation\n\n### NPM\n\n```\nnpm i -D rollup-plugin-ts-treeshaking\n```\n\n### Yarn\n\n```\nyarn add -D rollup-plugin-ts-treeshaking\n```\n\n## Usage\n\n```js\nimport typescript from 'rollup-plugin-typescript2';\nimport tsTreeshaking from 'rollup-plugin-ts-treeshaking';\n\nexport default {\n  plugins: [\n    typescript(),\n    tsTreeshaking(),\n    /* ... */\n  ],\n  /* ... */\n};\n```\n\n### Options\n\n#### js\n\nEnables processing of .js and .jsx files in addition to .ts and .tsx.\n\ntype: `boolean`  \ndefault: `true`\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fex-machine%2Frollup-plugin-ts-treeshaking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fex-machine%2Frollup-plugin-ts-treeshaking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fex-machine%2Frollup-plugin-ts-treeshaking/lists"}