From faef6e48e0eafefdef43d02ab52f844efaef3c44 Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Sat, 11 Feb 2017 03:12:12 +0100 Subject: [PATCH] Remove pure-class-to-function (#1077) * Optimize React * Remove unused preset * Remove pure-class-to-function --- package.json | 1 - server/build/babel/preset.js | 3 +-- yarn.lock | 14 ++------------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 73a01778..6ae0ca68 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "babel-plugin-transform-es2015-modules-commonjs": "6.22.0", "babel-plugin-transform-object-rest-spread": "6.22.0", "babel-plugin-transform-react-constant-elements": "^6.22.0", - "babel-plugin-transform-react-pure-class-to-function": "^1.0.1", "babel-plugin-transform-react-remove-prop-types": "^0.3.2", "babel-plugin-transform-runtime": "6.22.0", "babel-preset-latest": "6.22.0", diff --git a/server/build/babel/preset.js b/server/build/babel/preset.js index b0c87331..e48fa4d2 100644 --- a/server/build/babel/preset.js +++ b/server/build/babel/preset.js @@ -4,8 +4,7 @@ const babelRuntimePath = require.resolve('babel-runtime/package') const productionPlugins = isProduction ? [ require.resolve('babel-plugin-transform-react-constant-elements'), - require.resolve('babel-plugin-transform-react-remove-prop-types'), - require.resolve('babel-plugin-transform-react-pure-class-to-function') + require.resolve('babel-plugin-transform-react-remove-prop-types') ] : [] module.exports = { diff --git a/yarn.lock b/yarn.lock index 9cf9bd5e..a1e5a13a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -378,10 +378,6 @@ babel-helper-hoist-variables@^6.22.0: babel-runtime "^6.22.0" babel-types "^6.22.0" -babel-helper-is-react-class@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/babel-helper-is-react-class/-/babel-helper-is-react-class-1.0.0.tgz#ef6f3678b05c76dbdeedadead7af98c2724d8431" - babel-helper-optimise-call-expression@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.22.0.tgz#f8d5d4b40a6e2605a6a7f9d537b581bea3756d15" @@ -748,12 +744,6 @@ babel-plugin-transform-react-jsx@^6.22.0: babel-plugin-syntax-jsx "^6.8.0" babel-runtime "^6.22.0" -babel-plugin-transform-react-pure-class-to-function@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-pure-class-to-function/-/babel-plugin-transform-react-pure-class-to-function-1.0.1.tgz#32a649c97d653250b419cfd1489331b0290d9ee4" - dependencies: - babel-helper-is-react-class "^1.0.0" - babel-plugin-transform-react-remove-prop-types@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.3.2.tgz#6da8d834c6d7ad8ab02f956509790cfaa01ffe19" @@ -1502,8 +1492,8 @@ debug-log@^1.0.0, debug-log@^1.0.1: resolved "https://registry.yarnpkg.com/debug-log/-/debug-log-1.0.1.tgz#2307632d4c04382b8df8a32f70b895046d52745f" debug@^2.1.1, debug@^2.2.0: - version "2.6.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" + version "2.6.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" dependencies: ms "0.7.2"