babel-plugin-transform-react-class-displayname
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "babel-plugin-transform-react-class-displayname", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Babel plugin that adds class' name as static property `displayName`", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -13,3 +13,3 @@ # babel-plugin-transform-react-class-displayname | ||
``` | ||
yarn add babel-plugin-transform-react-class-displayname | ||
yarn add --dev babel-plugin-transform-react-class-displayname | ||
``` | ||
@@ -30,3 +30,3 @@ | ||
``` | ||
babel --plugins gtransform-react-class-displayname script.js | ||
babel --plugins transform-react-class-displayname script.js | ||
``` | ||
@@ -45,7 +45,7 @@ | ||
const component = class Class1 { | ||
static displayName = "Class1"; | ||
}; | ||
class Class2 { | ||
static displayName = "Class2"; | ||
} | ||
@@ -52,0 +52,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5015