es6-class-minify

JSON →
library 4.0.0 ·javascript
verified Jun 4, 2026

A specialized minifier for ES6 class fields and member functions, currently at version 4.0.0. Standard JavaScript minifiers cannot rename class properties or methods without breaking runtime behavior because they cannot track object instances. This package works around that by automatically renaming any property or method starting with underscore (`_`), which is a safe convention not used by built-in JavaScript names. It is meant to be used alongside a general-purpose minifier (like terser) to achieve complete code minification. The package has a Node.js engine requirement of >=13 and has no dependencies.