Gathering detailed insights and metrics for @rollup/plugin-terser
Gathering detailed insights and metrics for @rollup/plugin-terser
Gathering detailed insights and metrics for @rollup/plugin-terser
Gathering detailed insights and metrics for @rollup/plugin-terser
rollup-plugin-terser
Rollup plugin to minify generated es bundle
@wwa/rollup-plugin-terser
[](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/ci.yml) [
TypeScript (24.78%)
Shell (0.01%)
Total Downloads
98,700,735
Last Day
335,132
Last Week
1,833,897
Last Month
7,783,586
Last Year
69,557,670
MIT License
3,700 Stars
1,216 Commits
601 Forks
35 Watchers
5 Branches
268 Contributors
Updated on May 09, 2025
Latest Version
0.4.4
Package Id
@rollup/plugin-terser@0.4.4
Unpacked Size
28.03 kB
Size
5.53 kB
File Count
12
NPM Version
10.1.0
Node Version
20.8.0
Published on
Oct 05, 2023
Cumulative downloads
Total Downloads
Last Day
52.8%
335,132
Compared to previous day
Last Week
4.8%
1,833,897
Compared to previous week
Last Month
-2.9%
7,783,586
Compared to previous month
Last Year
169.9%
69,557,670
Compared to previous year
3
1
3
🍣 A Rollup plugin to generate a minified bundle with terser.
This plugin requires an LTS Node version (v14.0.0+) and Rollup v2.0+.
Using npm:
1npm install @rollup/plugin-terser --save-dev
Create a rollup.config.js
configuration file and import the plugin:
1import terser from '@rollup/plugin-terser'; 2 3export default { 4 input: 'src/index.js', 5 output: { 6 dir: 'output', 7 format: 'cjs' 8 }, 9 plugins: [terser()] 10};
Then call rollup
either via the CLI or the API.
The plugin accepts a terser Options object as input parameter, to modify the default behaviour.
In addition to the terser
options, it is also possible to provide the following options:
maxWorkers
Type: Number
Default: undefined
Instructs the plugin to use a specific amount of cpu threads.
1import terser from '@rollup/plugin-terser'; 2 3export default { 4 input: 'src/index.js', 5 output: { 6 dir: 'output', 7 format: 'cjs' 8 }, 9 plugins: [ 10 terser({ 11 maxWorkers: 4 12 }) 13 ] 14};
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
7 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 9
Reason
binaries present in source code
Details
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More