babel-plugin-transform-react-remove-prop-types
Advanced tools
Comparing version 0.4.11 to 0.4.12
@@ -78,6 +78,6 @@ "use strict"; | ||
unsafeWrapTemplate: template("\n if (process.env.NODE_ENV !== \"production\") {\n NODE;\n }\n ", { | ||
placeholderWhitelist: new Set(['NODE']) | ||
placeholderPattern: /^NODE$/ | ||
}), | ||
wrapTemplate: template("\n LEFT = process.env.NODE_ENV !== \"production\" ? RIGHT : {}\n ", { | ||
placeholderWhitelist: new Set(['LEFT', 'RIGHT']) | ||
placeholderPattern: /^(LEFT|RIGHT)$/ | ||
}), | ||
@@ -100,5 +100,4 @@ mode: state.opts.mode || 'remove', | ||
var plugin = require(pluginName); // Required for `babel-plugin-transform-flow-strip-types` | ||
var plugin = require(pluginName); | ||
if (typeof plugin !== 'function') { | ||
@@ -105,0 +104,0 @@ plugin = plugin.default; |
{ | ||
"name": "babel-plugin-transform-react-remove-prop-types", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"description": "Remove unnecessary React propTypes from the production build", | ||
@@ -34,12 +34,15 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel-cli": "7.0.0-beta.2", | ||
"babel-core": "7.0.0-beta.2", | ||
"@babel/cli": "^7.0.0-beta.35", | ||
"@babel/core": "^7.0.0-beta.35", | ||
"@babel/generator": "^7.0.0-beta.35", | ||
"@babel/plugin-external-helpers": "^7.0.0-beta.35", | ||
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.35", | ||
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.35", | ||
"@babel/preset-env": "^7.0.0-beta.35", | ||
"@babel/preset-flow": "^7.0.0-beta.35", | ||
"@babel/preset-react": "^7.0.0-beta.35", | ||
"@babel/preset-stage-1": "^7.0.0-beta.35", | ||
"@babel/register": "^7.0.0-beta.35", | ||
"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-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", | ||
@@ -46,0 +49,0 @@ "eslint": "^4.11.0", |
@@ -71,3 +71,3 @@ // @flow weak | ||
`, | ||
{ placeholderWhitelist: new Set(['NODE']) } | ||
{ placeholderPattern: /^NODE$/ } | ||
), | ||
@@ -78,3 +78,3 @@ wrapTemplate: template( | ||
`, | ||
{ placeholderWhitelist: new Set(['LEFT', 'RIGHT']) } | ||
{ placeholderPattern: /^(LEFT|RIGHT)$/ } | ||
), | ||
@@ -101,4 +101,2 @@ mode: state.opts.mode || 'remove', | ||
let plugin = require(pluginName) | ||
// Required for `babel-plugin-transform-flow-strip-types` | ||
if (typeof plugin !== 'function') { | ||
@@ -105,0 +103,0 @@ plugin = plugin.default |
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
33135
28
692