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

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@instructure/babel-plugin-transform-class-display-name
425195.52.35 years ago7 years agoMinified + gzip package size for @instructure/babel-plugin-transform-class-display-name in KB

Readme

---

category: packages

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

!npmnpmnpm-url
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"]
}