Skip to content

Commit

Permalink
#112: Setup for es6
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrowd committed Apr 26, 2017
1 parent 2a600dc commit ebb48d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": [ "react", "es2015" ]
"presets": [ "react", "es2015" ],
"plugins": [ "transform-class-properties" ]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"babel-core": "^6.24.1",
"babel-jest": "^19.0.0",
"babel-loader": "^7.0.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babelify": "^7.3.0",
Expand Down Expand Up @@ -92,7 +93,6 @@
},
"dependencies": {
"classnames": "^2.2.5",
"create-react-class": "^15.5.2",
"react-easy-swipe": "^0.0.10",
"prop-types": "^15.5.8"
}
Expand Down
2 changes: 1 addition & 1 deletion tasks/browserify.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function (options) {
// using dev components
entries: [configs.paths.source + '/main.js'],
// using npm components
transform: [["babelify", {presets: ["es2015", "react"]}]],
transform: ["babelify"],
debug: isDevelopment,
fullPaths: isDevelopment,
extension: ['js']
Expand Down

0 comments on commit ebb48d8

Please sign in to comment.