babel-plugin-transform-react-es6-displayname
Advanced tools
Comparing version 1.0.0-beta1.3 to 1.0.0-beta1.4
11
index.js
@@ -15,7 +15,10 @@ module.exports = babelPluginTransformReactEs6ClassDisplayName; | ||
if ( | ||
this.node.superClass.name === 'Component' || | ||
this.node.superClass && | ||
( | ||
this.node.superClass.object && | ||
this.node.superClass.object.name === 'React' && | ||
this.node.superClass.property.name === 'Component' | ||
this.node.superClass.name === 'Component' || | ||
( | ||
this.node.superClass.object && | ||
this.node.superClass.object.name === 'React' && | ||
this.node.superClass.property.name === 'Component' | ||
) | ||
) | ||
@@ -22,0 +25,0 @@ ) { |
{ | ||
"name": "babel-plugin-transform-react-es6-displayname", | ||
"version": "1.0.0-beta1.3", | ||
"version": "1.0.0-beta1.4", | ||
"description": "Babel transform to add the displayName property to component classes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
3235
55