babel-plugin-transform-react-remove-prop-types
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -55,3 +55,3 @@ 'use strict'; | ||
if (superClass.matchesPattern('React.Component') || superClass.node.name === 'Component') { | ||
if (superClass.matchesPattern('React.Component') || superClass.node && superClass.node.name === 'Component') { | ||
path.remove(); | ||
@@ -58,0 +58,0 @@ } |
{ | ||
"name": "babel-plugin-transform-react-remove-prop-types", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Remove unnecessary React propTypes from the production build", | ||
@@ -28,3 +28,2 @@ "main": "lib/index.js", | ||
}, | ||
"homepage": "http://oliviertassinari.github.io/babel-plugin-transform-react-remove-prop-types/", | ||
"dependencies": { | ||
@@ -34,4 +33,4 @@ "babel-core": "^6.3.26" | ||
"devDependencies": { | ||
"babel-cli": "^6.3.17", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-cli": "^6.6.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.3.13", | ||
@@ -38,0 +37,0 @@ "babel-preset-stage-0": "^6.3.13", |
@@ -41,3 +41,4 @@ import isStatelessComponent from './isStatelessComponent'; | ||
if (superClass.matchesPattern('React.Component') || superClass.node.name === 'Component') { | ||
if (superClass.matchesPattern('React.Component') || | ||
superClass.node.name === 'Component') { | ||
path.remove(); | ||
@@ -49,3 +50,4 @@ } else if (superClass.node.name) { // Check for inheritance | ||
if (superClass.matchesPattern('React.Component') || superClass.node.name === 'Component') { | ||
if (superClass.matchesPattern('React.Component') || | ||
(superClass.node && superClass.node.name === 'Component')) { | ||
path.remove(); | ||
@@ -52,0 +54,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
No website
QualityPackage does not have a website.
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
269
12736