From b676fbd5e0fa7d711d21319494271bc82032e204 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Wed, 26 Apr 2017 11:05:33 -0700 Subject: [PATCH] [fix] propTypes removal in production builds Updates the relevant babel plugin, which now replaces component propTypes with an empty object, avoiding the majority of potential runtime errors related to this transform. Fix #423 --- package.json | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bc162494..0696985b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "babel-core": "^6.24.1", "babel-eslint": "^7.2.2", "babel-loader": "^6.4.1", - "babel-plugin-transform-react-remove-prop-types": "^0.4.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.2", "babel-preset-react-native": "^1.9.1", "del-cli": "^0.2.1", "enzyme": "^2.8.2", diff --git a/yarn.lock b/yarn.lock index 330ce913..f83e6246 100644 --- a/yarn.lock +++ b/yarn.lock @@ -931,9 +931,9 @@ babel-plugin-transform-react-jsx@^6.3.13, babel-plugin-transform-react-jsx@^6.5. babel-plugin-syntax-jsx "^6.8.0" babel-runtime "^6.0.0" -babel-plugin-transform-react-remove-prop-types@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.0.tgz#f63840e7953563d661be8c647b094d74d7363f17" +babel-plugin-transform-react-remove-prop-types@^0.4.2: + version "0.4.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.2.tgz#97e3cab4d05938df91e16c0473737ef6c575a2e6" babel-plugin-transform-regenerator@6.16.1: version "6.16.1"