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

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

Usage no npm install needed!

<script type="module">
  import instructureBabelPluginTransformClassDisplayName from 'https://cdn.skypack.dev/@instructure/babel-plugin-transform-class-display-name';
</script>

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