From d131c2ba854d753a36275b12849312b6200ef309 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Tue, 22 Dec 2015 09:34:52 -0500 Subject: [PATCH 1/2] use babel-preset-react-hmre --- .babelrc | 15 ++------------- package.json | 5 +---- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.babelrc b/.babelrc index 8a581f8..1d3c91a 100644 --- a/.babelrc +++ b/.babelrc @@ -2,18 +2,7 @@ "presets": ["react", "es2015"], "env": { "development": { - "plugins": [ - ["react-transform", { - "transforms": [{ - "transform": "react-transform-hmr", - "imports": ["react"], - "locals": ["module"] - }, { - "transform": "react-transform-catch-errors", - "imports": ["react", "redbox-react"] - }] - }] - ] + "presets": ["react-hmre"] } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index fda00b7..c7bb1dc 100644 --- a/package.json +++ b/package.json @@ -36,16 +36,13 @@ "babel-core": "^6.3.15", "babel-eslint": "^5.0.0-beta4", "babel-loader": "^6.2.0", - "babel-plugin-react-transform": "^2.0.0-beta1", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", + "babel-preset-react-hmre": "^1.0.0-2", "eslint": "^1.10.3", "eslint-plugin-babel": "^3.0.0", "eslint-plugin-react": "^3.11.3", "express": "^4.13.3", - "react-transform-catch-errors": "^1.0.0", - "react-transform-hmr": "^1.0.1", - "redbox-react": "^1.0.1", "rimraf": "^2.4.3", "webpack": "^1.12.9", "webpack-dev-middleware": "^1.4.0", From bc38fb3ee406f75947a48f073e0676dc20e3f377 Mon Sep 17 00:00:00 2001 From: Daniel Martinez Date: Wed, 23 Dec 2015 19:59:22 -0500 Subject: [PATCH 2/2] update babel-preset-react-hmre to v1.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c7bb1dc..45f22b0 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "babel-loader": "^6.2.0", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.3.13", - "babel-preset-react-hmre": "^1.0.0-2", + "babel-preset-react-hmre": "^1.0.0", "eslint": "^1.10.3", "eslint-plugin-babel": "^3.0.0", "eslint-plugin-react": "^3.11.3",