diff --git a/lib/creator/yeoman/webpack-generator.js b/lib/creator/yeoman/webpack-generator.js index 8ddc76e67c7..a761fbcdc15 100644 --- a/lib/creator/yeoman/webpack-generator.js +++ b/lib/creator/yeoman/webpack-generator.js @@ -94,7 +94,7 @@ module.exports = class WebpackGenerator extends Generator { ]).then( (ans) => { if(ans['babelConfirm'] === true) { this.configuration.config.webpackOptions.module.rules.push(getBabelPlugin()); - this.npmInstalls.push('babel-loader', 'babel-core', 'babel-preset-env'); + this.npmInstalls.push('babel-loader', 'babel-core', 'babel-preset-es2015'); } }).then( () => { this.prompt([