Skip to content

Commit f5c571d

Browse files
committed
remove default babel configuration
1 parent d3274ec commit f5c571d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

lib/loader.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ module.exports = function (content) {
4949
var defaultLoaders = {
5050
html: templateCompilerPath + '?id=' + moduleId,
5151
css: styleLoaderPath + '!css-loader' + (needCssSourceMap ? '?sourceMap' : ''),
52-
js: hasBabel
53-
? this.options.babel
54-
? 'babel-loader' // respect user options
55-
: 'babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false'
56-
: ''
52+
js: hasBabel ? 'babel-loader' : ''
5753
}
5854

5955
// check if there are custom loaders specified via

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@
4747
"devDependencies": {
4848
"babel-core": "^6.8.0",
4949
"babel-loader": "^6.2.4",
50-
"babel-plugin-transform-runtime": "^6.8.0",
5150
"babel-preset-es2015": "^6.6.0",
52-
"babel-runtime": "^6.0.0",
5351
"chai": "^3.0.0",
5452
"coffee-loader": "^0.7.2",
5553
"coffee-script": "^1.10.0",

0 commit comments

Comments
 (0)