babel-plugin-class-display-name
v2.1.0
Published
Add displayName propery to classes to prevent lost information during name mangling
Downloads
1,900
Readme
babel-plugin-class-display-name
Add displayName property to class constructors to prevent it lost during minification
Installation
$ npm install babel-plugin-class-display-name
Usage
Via .babelrc
(Recommended)
.babelrc
{
"plugins": ["class-display-name"]
}
Via CLI
$ babel --plugins class-display-name script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["class-display-name"]
});