Skip to content

Commit 106f81e

Browse files
committed
Update babel to babel 6
1 parent 3c0a31e commit 106f81e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,16 @@
1717
"bugs": {
1818
"url": "https://github.com/Foxandxss/angular-webpack-workflow/issues"
1919
},
20-
"babel": {
21-
"stage": 1
22-
},
2320
"homepage": "https://github.com/Foxandxss/angular-webpack-workflow",
2421
"dependencies": {
2522
"angular": "^1.4.7"
2623
},
2724
"devDependencies": {
2825
"angular-mocks": "^1.4.7",
2926
"autoprefixer": "^6.0.3",
30-
"babel-core": "^5.8.29",
31-
"babel-loader": "^5.3.2",
32-
"babel-runtime": "^5.8.29",
27+
"babel-core": "^6.2.1",
28+
"babel-loader": "^6.2.0",
29+
"babel-preset-es2015": "^6.1.18",
3330
"css-loader": "^0.21.0",
3431
"extract-text-webpack-plugin": "^0.8.2",
3532
"file-loader": "^0.8.4",
@@ -52,4 +49,4 @@
5249
"webpack": "^1.12.2",
5350
"webpack-dev-server": "^1.12.1"
5451
}
55-
}
52+
}

webpack.make.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ module.exports = function makeWebpackConfig (options) {
9292
// Transpile .js files using babel-loader
9393
// Compiles ES6 and ES7 into ES5 code
9494
test: /\.js$/,
95-
loader: 'babel?optional[]=runtime',
95+
loader: 'babel',
96+
query: {
97+
presets: ['es2015']
98+
},
9699
exclude: /node_modules/
97100
}, {
98101
// ASSET LOADER

0 commit comments

Comments
 (0)