rollup-plugin-es6-class-minify

JSON →
library 2.0.0 ·javascript
verified Jun 4, 2026

A Rollup plugin that minifies ES6 class member names (fields and methods) by renaming identifiers prefixed with underscore (`_`). Version 2.0.0 requires Node.js >=13. It works alongside standard JavaScript minifiers (like Terser) which cannot rename class properties. The plugin operates on the AST during bundling, replacing `_`-prefixed names with short alternatives. It supports repeated use across multiple bundles with consistent mappings by reusing the plugin instance. Input files must use underscore-prefixed class members for minification to apply.