{"id":20163372,"url":"https://github.com/sjinks/rollup-plugin-terser","last_synced_at":"2025-04-10T00:40:59.300Z","repository":{"id":61453349,"uuid":"551627923","full_name":"sjinks/rollup-plugin-terser","owner":"sjinks","description":"A Rollup plugin to minify the generated bundle with Terser","archived":false,"fork":false,"pushed_at":"2025-04-08T03:27:54.000Z","size":1894,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T04:26:18.957Z","etag":null,"topics":["minify","minify-javascript","rollup","rollup-plugin","terser"],"latest_commit_sha":null,"homepage":"","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/sjinks.png","metadata":{"funding":{"custom":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"]},"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-14T19:18:56.000Z","updated_at":"2025-04-07T22:21:26.000Z","dependencies_parsed_at":"2023-10-12T13:46:14.610Z","dependency_job_id":"927e09cc-668a-4cc8-92dd-24daf41155c7","html_url":"https://github.com/sjinks/rollup-plugin-terser","commit_stats":{"total_commits":92,"total_committers":2,"mean_commits":46.0,"dds":"0.14130434782608692","last_synced_commit":"8d1fe0eb30aad8ba67f3981bc77c568653fbaaf6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Frollup-plugin-terser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Frollup-plugin-terser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Frollup-plugin-terser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjinks%2Frollup-plugin-terser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjinks","download_url":"https://codeload.github.com/sjinks/rollup-plugin-terser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247778521,"owners_count":20994504,"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":["minify","minify-javascript","rollup","rollup-plugin","terser"],"created_at":"2024-11-14T00:29:15.657Z","updated_at":"2025-04-10T00:40:59.282Z","avatar_url":"https://github.com/sjinks.png","language":"TypeScript","funding_links":["https://www.paypal.com/donate/?hosted_button_id=SAG6877JDJ3KU","https://send.monobank.ua/jar/7rosVfiwKM"],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-terser\n\n[![Build and Test](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/ci.yml/badge.svg)](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/ci.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sjinks_rollup-plugin-terser\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=sjinks_rollup-plugin-terser)\n[![CodeQL Analysis](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/codeql-analysis.yml)\n[![Dependency Review](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/dependency-review.yml)\n\nA Rollup plugin to minify the generated bundle with Terser.\n\nThis is a complete rewrite of [TrySound/rollup-plugin-terser](https://github.com/TrySound/rollup-plugin-terser).\n\nMain differences:\n  * the code is written in TypeScript;\n  * this plugin supports both Rollup 2 and Rollup 3;\n  * the implementation is more lightweight and probably less resource-consuming, but it does not use workers (therefore, it could be slower).\n\n## Installation\n\n```bash\nnpm i -D @wwa/rollup-plugin-terser\n```\n\n## Usage\n\n```js\nimport { rollup } from 'rollup';\nimport { terser } from '@wwa/rollup-plugin-terser';\n\nrollup({\n  input: 'file.js',\n  plugins: [\n    terser(),\n  ],\n});\n```\n\n`terser` accepts an optional `options` parameter, which is the [MinifyOptions object](https://github.com/terser/terser#minify-options).\n\nThe plugin automatically sets the following options:\n  * `module: true` if the output format is `esm` or `es`;\n  * `toplevel: true` if the output format is `cjs`;\n  * `sourcemap` is always inferred from rollup's options.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Frollup-plugin-terser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjinks%2Frollup-plugin-terser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjinks%2Frollup-plugin-terser/lists"}