babel-plugin-class-display-name

Add displayName propery to classes to prevent lost information during name mangling

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-class-display-name
212.1.06 years ago7 years agoMinified + gzip package size for babel-plugin-class-display-name in KB

Readme

babel-plugin-class-display-name Build Status
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"]
});