@instructure/babel-plugin-transform-class-display-name
Advanced tools
Comparing version 4.0.0-beta.0 to 4.0.0
{ | ||
"name": "@instructure/babel-plugin-transform-class-display-name", | ||
"version": "4.0.0-beta.0", | ||
"version": "4.0.0", | ||
"description": "A babel plugin to add a displayName property to React component class declarations", | ||
@@ -5,0 +5,0 @@ "author": "Instructure, Inc. Engineering and Product Design", |
@@ -0,1 +1,5 @@ | ||
--- | ||
category: packages | ||
--- | ||
## @instructure/babel-plugin-transform-class-display-name | ||
@@ -8,6 +12,20 @@ | ||
A transform to add a displayName to React components. This is required for | ||
[@instructure/ui-themeable](#ui-themeable) because it uses the displayName to | ||
scope the CSS variables. | ||
### Installation | ||
```sh | ||
npm install @instructure/babel-plugin-transform-class-display-name | ||
yarn add --dev @instructure/babel-plugin-transform-class-display-name | ||
``` | ||
### Usage | ||
In your `.babelrc` file: | ||
```json | ||
{ | ||
"plugins": ["@instructure/babel-plugin-transform-class-display-name"] | ||
} | ||
``` |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3085
0
31
1