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
@cocos/rollup-plugin-terser
Generate minified bundle
@wwa/rollup-plugin-terser
[](https://github.com/sjinks/rollup-plugin-terser/actions/workflows/ci.yml) [
TypeScript (24.83%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3,713 Stars
1,228 Commits
603 Forks
35 Watchers
5 Branches
270 Contributors
Updated on Jul 04, 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
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
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
12 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 14/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
20 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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