diff --git a/.babelrc b/.babelrc index 50f9abc8..db2042af 100644 --- a/.babelrc +++ b/.babelrc @@ -7,6 +7,9 @@ "plugins": [ "transform-runtime", "babel-plugin-transform-es2015-constants", + ["transform-react-remove-prop-types", { + "additionalLibraries": ["react-immutable-proptypes"] + }], [ "module-alias", [ diff --git a/package-lock.json b/package-lock.json index e52ca05e..fe809e5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1531,6 +1531,12 @@ "babel-runtime": "^6.22.0" } }, + "babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.13.tgz", + "integrity": "sha1-Mxz8BQmagII4MR14MZwnRg1IEYk=", + "dev": true + }, "babel-plugin-transform-regenerator": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", diff --git a/package.json b/package.json index 995ff8e1..b844fbba 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "babel-loader": "^7.1.0", "babel-plugin-module-alias": "^1.6.0", "babel-plugin-transform-es2015-constants": "^6.1.4", + "babel-plugin-transform-react-remove-prop-types": "^0.4.13", "babel-plugin-transform-runtime": "^6.23.0", "babel-preset-es2015": "^6.22.0", "babel-preset-es2015-ie": "^6.6.2",