babel-plugin-transform-react-remove-prop-types
Advanced tools
Comparing version 0.4.10 to 0.4.11
@@ -77,4 +77,8 @@ "use strict"; | ||
visitedKey: "transform-react-remove-prop-types".concat(Date.now()), | ||
unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n "), | ||
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n "), | ||
unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n ", { | ||
placeholderWhitelist: new Set(['NODE']) | ||
}), | ||
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n ", { | ||
placeholderWhitelist: new Set(['LEFT', 'RIGHT']) | ||
}), | ||
mode: state.opts.mode || 'remove', | ||
@@ -81,0 +85,0 @@ ignoreFilenames: ignoreFilenames, |
{ | ||
"name": "babel-plugin-transform-react-remove-prop-types", | ||
"version": "0.4.10", | ||
"version": "0.4.11", | ||
"description": "Remove unnecessary React propTypes from the production build", | ||
@@ -34,18 +34,18 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel-cli": "^7.0.0-beta.2", | ||
"babel-core": "^7.0.0-beta.2", | ||
"babel-eslint": "^8.0.1", | ||
"babel-generator": "^7.0.0-beta.2", | ||
"babel-cli": "7.0.0-beta.2", | ||
"babel-core": "7.0.0-beta.2", | ||
"babel-eslint": "^8.0.2", | ||
"babel-generator": "7.0.0-beta.2", | ||
"babel-plugin-flow-react-proptypes": "^6.1.0", | ||
"babel-plugin-transform-flow-strip-types": "^7.0.0-beta.2", | ||
"babel-preset-es2015": "^7.0.0-beta.2", | ||
"babel-preset-flow": "^7.0.0-beta.2", | ||
"babel-preset-react": "^7.0.0-beta.2", | ||
"babel-preset-stage-0": "^7.0.0-beta.2", | ||
"babel-plugin-transform-flow-strip-types": "7.0.0-beta.2", | ||
"babel-preset-env": "^2.0.0-beta.2", | ||
"babel-preset-flow": "7.0.0-beta.2", | ||
"babel-preset-react": "7.0.0-beta.2", | ||
"babel-preset-stage-1": "7.0.0-beta.2", | ||
"chai": "^4.1.2", | ||
"eslint": "^4.8.0", | ||
"eslint-config-airbnb": "^16.0.0", | ||
"eslint": "^4.11.0", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-babel": "^4.1.2", | ||
"eslint-plugin-flowtype": "^2.39.1", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
@@ -55,8 +55,8 @@ "eslint-plugin-mocha": "^4.11.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"flow-bin": "^0.56.0", | ||
"flow-bin": "^0.59.0", | ||
"mocha": "^4.0.1", | ||
"path-exists": "^3.0.0", | ||
"pkgfiles": "^2.3.2", | ||
"prettier": "^1.7.4" | ||
"prettier": "^1.8.2" | ||
} | ||
} |
@@ -65,10 +65,16 @@ // @flow weak | ||
visitedKey: `transform-react-remove-prop-types${Date.now()}`, | ||
unsafeWrapTemplate: template(` | ||
if (process.env.NODE_ENV !== "production") { | ||
NODE; | ||
} | ||
`), | ||
wrapTemplate: template(` | ||
LEFT = process.env.NODE_ENV !== "production" ? RIGHT : {} | ||
`), | ||
unsafeWrapTemplate: template( | ||
` | ||
if (process.env.NODE_ENV !== "production") { | ||
NODE; | ||
} | ||
`, | ||
{ placeholderWhitelist: new Set(['NODE']) } | ||
), | ||
wrapTemplate: template( | ||
` | ||
LEFT = process.env.NODE_ENV !== "production" ? RIGHT : {} | ||
`, | ||
{ placeholderWhitelist: new Set(['LEFT', 'RIGHT']) } | ||
), | ||
mode: state.opts.mode || 'remove', | ||
@@ -75,0 +81,0 @@ ignoreFilenames, |
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
33126
693