Skip to content

Commit

Permalink
Update example babel version
Browse files Browse the repository at this point in the history
  • Loading branch information
mic159 committed Jun 21, 2016
1 parent a8571f0 commit eeebac1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 9 additions & 2 deletions example/example_app/static/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ var moduleOpts = {
// Inform webpack to use the babel loader when reading files
// ending in '.jsx'
loaders: [
{test: /\.jsx$/, exclude: /node_modules/, loader: 'babel'}
{
test: /\.jsx$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}
]
};

Expand Down Expand Up @@ -49,4 +56,4 @@ module.exports = [
libraryTarget: 'commonjs2'
},
module: moduleOpts
}];
}];
8 changes: 5 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
"watch": "webpack --config example_app/static/webpack.config.js --watch"
},
"dependencies": {
"babel-core": "^5.8.22",
"babel-loader": "^5.3.3",
"babel-core": "^6.9.1",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"jquery": "^2.1.3",
"marked": "^0.3.3",
"react": "^0.14.2",
"webpack": "^1.12.3",
"webpack": "^1.13.1",
"react-render-service": "^0.12.4"
}
}

0 comments on commit eeebac1

Please sign in to comment.