babel-plugin-class-display-name

2.1.0 • Public • Published

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"]
});

Readme

Keywords

none

Package Sidebar

Install

npm i babel-plugin-class-display-name

Weekly Downloads

373

Version

2.1.0

License

MIT

Last publish

Collaborators

  • ftdebugger