Use babel for ES6 / ES2015 support

This commit is contained in:
Christopher Willis-Ford 2016-06-15 14:39:44 -07:00
parent f3a80c3429
commit 2c9e17d486
5 changed files with 18 additions and 4 deletions

View file

@ -15,6 +15,13 @@ module.exports = {
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
},
{
test: /\.json$/,
loader: 'json-loader'