babel-plugin-transform-react-remove-prop-types
Advanced tools
Comparing version 0.4.22 to 0.4.23
@@ -230,3 +230,3 @@ "use strict"; | ||
return currentNode.get('callee').node.name === globalOptions.createReactClassName || currentNode.get('callee').node.property.name === 'createClass'; | ||
return currentNode.get('callee').node.name === globalOptions.createReactClassName || currentNode.get('callee').node.property && currentNode.get('callee').node.property.name === 'createClass'; | ||
}); | ||
@@ -233,0 +233,0 @@ |
{ | ||
"name": "babel-plugin-transform-react-remove-prop-types", | ||
"version": "0.4.22", | ||
"version": "0.4.23", | ||
"description": "Remove unnecessary React propTypes from the production build", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -227,3 +227,4 @@ /* eslint-disable global-require, import/no-dynamic-require */ | ||
currentNode.get('callee').node.name === globalOptions.createReactClassName || | ||
currentNode.get('callee').node.property.name === 'createClass' | ||
(currentNode.get('callee').node.property && | ||
currentNode.get('callee').node.property.name === 'createClass') | ||
) | ||
@@ -230,0 +231,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
49070
1046