babel-plugin-class-display-name
2.1.0 • Public • Published 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"]
});
Readme
Keywords
nonePackage Sidebar
Install
npm i babel-plugin-class-display-name
Weekly Downloads