diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..c13c5f627 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015"] +} diff --git a/lib/loader.js b/lib/loader.js index c44f810f9..dfd5877bf 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -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 diff --git a/package.json b/package.json index cd6a58eda..b27308d35 100644 --- a/package.json +++ b/package.json @@ -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",