Skip to content

Commit 0dad1df

Browse files
committed
update babel refs to babel-env and plugins, remove babel-presets
1 parent 8dcc4ab commit 0dad1df

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.babelrc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
2-
"presets": [ "react", "es2015", "stage-0" ],
2+
"presets": [
3+
"react",
4+
"env"
5+
],
36
"plugins": [
47
"babel-plugin-transform-array-from",
5-
"babel-plugin-stylus-compiler",
6-
"react-hot-loader/babel"
8+
"stylus-compiler",
9+
"syntax-function-bind",
10+
"transform-class-properties",
11+
"transform-object-rest-spread",
12+
"transform-export-extensions",
13+
"react-hot-loader/babel",
714
]
815
}

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,14 @@
5454
"babel-eslint": "^7.1.0",
5555
"babel-loader": "^7.0.0",
5656
"babel-plugin-stylus-compiler": "^1.3.0",
57+
"babel-plugin-syntax-function-bind": "^6.13.0",
5758
"babel-plugin-transform-array-from": "^1.0.0",
59+
"babel-plugin-transform-class-properties": "^6.24.1",
60+
"babel-plugin-transform-export-extensions": "^6.22.0",
61+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
5862
"babel-polyfill": "^6.13.0",
59-
"babel-preset-es2015": "^6.14.0",
63+
"babel-preset-env": "^1.6.0",
6064
"babel-preset-react": "^6.11.1",
61-
"babel-preset-stage-0": "^6.5.0",
6265
"babel-runtime": "^6.11.6",
6366
"chai": "^4.0.0",
6467
"concurrently": "^3.1.0",
@@ -95,12 +98,12 @@
9598
"mocha": "^3.1.2",
9699
"node-storage-shim": "^1.0.1",
97100
"react": "^15.4.2",
98-
"react-redux": "^5.0.3",
99-
"redux": "^3.5.1",
100-
"react-dom": "^15.4.1",
101101
"react-addons-perf": "^15.3.2",
102102
"react-addons-test-utils": "^15.3.2",
103+
"react-dom": "^15.4.1",
103104
"react-hot-loader": "^3.0.0-beta.6",
105+
"react-redux": "^5.0.3",
106+
"redux": "^3.5.1",
104107
"redux-devtools": "^3.3.1",
105108
"redux-mock-store": "^1.2.1",
106109
"sinon": "^2.1.0",

src/components/Grid.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export class Grid extends Component {
193193
// since this is potentially a very expensive operation
194194
// and only want to rerun when props have actually changed
195195
if (shouldResetData) {
196-
setTimeout(::this.setData, 0);
196+
setTimeout(this.setData.bind(this), 0);
197197
}
198198
}
199199
}

0 commit comments

Comments
 (0)