Skip to content

Commit 76e8744

Browse files
committed
Merge pull request #953 from scttcper/babel6
Upgrade to Babel 6.x
2 parents 7773ccf + b3b504d commit 76e8744

File tree

4 files changed

+407
-408
lines changed

4 files changed

+407
-408
lines changed

generators/app/templates/_package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
<% } if (props.jsPreprocessor.srcExtension === 'es6') { -%>
5454
"eslint-loader": "~1.1.0",
5555
<% } if (props.jsPreprocessor.key === 'babel') { -%>
56-
"babel-core": "~5.8.25",
57-
"babel-loader": "~5.3.2",
56+
"babel-core": "~6.7.4",
57+
"babel-loader": "~6.2.4",
58+
"babel-preset-es2015": "~6.6.0",
5859
<% } if (props.jsPreprocessor.key === 'traceur') { -%>
5960
"traceur-loader": "~0.6.3",
6061
<% } if (props.jsPreprocessor.key === 'typescript') { -%>

generators/app/templates/gulp/_scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function webpackWrapper(watch, test, callback) {
5353
preLoaders: [{ test: /\.ts$/, exclude: /node_modules/, loader: 'tslint-loader'}],
5454
<% } -%>
5555
<% if (props.jsPreprocessor.key === 'babel') { -%>
56-
loaders: [{ test: /\.js$/, exclude: /node_modules/, loaders: ['ng-annotate', 'babel-loader']}]
56+
loaders: [{ test: /\.js$/, exclude: /node_modules/, loaders: ['ng-annotate', 'babel-loader?presets[]=es2015']}]
5757
<% } if (props.jsPreprocessor.key === 'traceur') { -%>
5858
loaders: [{ test: /\.js$/, exclude: /node_modules/, loaders: ['ng-annotate', 'traceur-loader']}]
5959
<% } if (props.jsPreprocessor.key === 'typescript') { -%>

0 commit comments

Comments
 (0)