Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 4767bd9

Browse files
committed
Merge pull request #67 from nkbt/new-react-transform
[#65] Revive react-transform
2 parents 170cc73 + 9da105e commit 4767bd9

File tree

3 files changed

+43
-14
lines changed

3 files changed

+43
-14
lines changed

.babelrc

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
{
22
"presets": [
33
"es2015",
4+
"stage-2",
45
"react"
56
],
6-
"plugins": [
7-
"transform-es2015-modules-commonjs",
8-
"transform-object-rest-spread"
9-
]
7+
"env": {
8+
"development": {
9+
"plugins": [
10+
[
11+
"react-transform",
12+
{
13+
"transforms": [
14+
{
15+
"transform": "react-transform-hmr",
16+
"imports": ["react"],
17+
"locals": ["module"]
18+
}, {
19+
"transform": "react-transform-catch-errors",
20+
"imports": ["react", "redbox-react"]
21+
}
22+
]
23+
}
24+
]
25+
]
26+
}
27+
}
1028
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stable

package.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
"check": "npm run lint && npm run test && npm outdated --depth=0",
1515
"update": "updtr"
1616
},
17+
"engines": {
18+
"node": ">=4"
19+
},
20+
"os": [
21+
"darwin",
22+
"linux"
23+
],
1724
"keywords": [
1825
"react",
1926
"reactjs",
@@ -33,29 +40,32 @@
3340
},
3441
"devDependencies": {
3542
"babel-cli": "6.3.17",
36-
"babel-core": "6.3.17",
37-
"babel-eslint": "4.1.6",
43+
"babel-core": "6.3.26",
44+
"babel-eslint": "5.0.0-beta6",
3845
"babel-loader": "6.2.0",
39-
"babel-plugin-react-transform": "1.1.1",
46+
"babel-plugin-react-transform": "2.0.0",
4047
"babel-plugin-transform-runtime": "6.3.13",
4148
"babel-preset-es2015": "6.3.13",
4249
"babel-preset-react": "6.3.13",
4350
"babel-preset-stage-2": "6.3.13",
4451
"cheerio": "0.19.0",
4552
"eslint": "1.10.3",
46-
"eslint-plugin-react": "3.11.3",
47-
"rimraf": "2.4.4",
48-
"tap-xunit": "1.2.1",
49-
"tape": "4.2.2",
53+
"eslint-plugin-react": "3.13.1",
54+
"react-transform-catch-errors": "1.0.1",
55+
"react-transform-hmr": "1.0.1",
56+
"redbox-react": "1.2.0",
57+
"rimraf": "2.5.0",
58+
"tap-xunit": "1.3.1",
59+
"tape": "4.4.0",
5060
"updtr": "0.1.6",
51-
"watch": "0.16.0",
61+
"watch": "0.17.1",
5262
"webpack": "1.12.9",
5363
"webpack-dev-middleware": "1.4.0",
5464
"webpack-hot-middleware": "2.6.0"
5565
},
5666
"dependencies": {
57-
"react": "0.14.3",
58-
"react-dom": "0.14.3",
67+
"react": "0.14.5",
68+
"react-dom": "0.14.5",
5969
"express": "4.13.3"
6070
},
6171
"license": "MIT",

0 commit comments

Comments
 (0)