@instructure/babel-plugin-transform-class-display-name

A babel plugin to add a displayName property to React component class declarations

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
3378Jun 16, 2021Dec 10, 2015Minified + gzip package size for @instructure/babel-plugin-transform-class-display-name in KB

Readme


category: packages

@instructure/babel-plugin-transform-class-display-name

npm

A transform to add a displayName to React components. This is required for @instructure/ui-themeable because it uses the displayName to scope the CSS variables.

Installation

yarn add --dev @instructure/babel-plugin-transform-class-display-name

Usage

In your .babelrc file:

{
  "plugins": ["@instructure/babel-plugin-transform-class-display-name"]
}

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.