1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Remove pure-class-to-function (#1077)

* Optimize React

* Remove unused preset

* Remove pure-class-to-function
This commit is contained in:
Tim Neutkens 2017-02-11 03:12:12 +01:00 committed by Arunoda Susiripala
parent 250c066de5
commit faef6e48e0
3 changed files with 3 additions and 15 deletions

View file

@ -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",

View file

@ -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 = {

View file

@ -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"