Skip to content

Commit

Permalink
fix babel
Browse files Browse the repository at this point in the history
  • Loading branch information
rohrfacu committed May 15, 2018
1 parent dde36ad commit 4a9d240
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "stage-0", "angular"]
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
"zone.js": "0.8.16"
},
"devDependencies": {
"babel-core": "^6.0.20",
"babel-loader": "^6.0.1",
"babel-preset-es2015": "^6.0.15",
"babel-preset-react": "^6.0.15",
"babel-preset-stage-0": "^6.0.15",
"webpack-dev-middleware": "^1.2.0",
"webpack-hot-middleware": "^2.0.0",
"@types/jasmine": "2.5.53",
"@types/node": "8.0.18",
"angular2-template-loader": "0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = webpackMerge(commonConfig({ env: ENV }), {
fallback: 'style-loader',
use: ['css-loader']
})
}]
},{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ }]
},
plugins: [
extractCSS,
Expand Down

0 comments on commit 4a9d240

Please sign in to comment.