Skip to content

Commit

Permalink
remove default babel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 14, 2016
1 parent d3274ec commit f5c571d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
6 changes: 1 addition & 5 deletions lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ module.exports = function (content) {
var defaultLoaders = {
html: templateCompilerPath + '?id=' + moduleId,
css: styleLoaderPath + '!css-loader' + (needCssSourceMap ? '?sourceMap' : ''),
js: hasBabel
? this.options.babel
? 'babel-loader' // respect user options
: 'babel-loader?presets[]=es2015&plugins[]=transform-runtime&comments=false'
: ''
js: hasBabel ? 'babel-loader' : ''
}

// check if there are custom loaders specified via
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@
"devDependencies": {
"babel-core": "^6.8.0",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"babel-runtime": "^6.0.0",
"chai": "^3.0.0",
"coffee-loader": "^0.7.2",
"coffee-script": "^1.10.0",
Expand Down

0 comments on commit f5c571d

Please sign in to comment.