diff --git a/README.md b/README.md index 1d6e35c7e..7c3e20a2a 100644 --- a/README.md +++ b/README.md @@ -119,21 +119,21 @@ gulp.task('default', build); ## Use latest JavaScript version in your gulpfile -Node already supports a lot of **ES2015**, to avoid compatibility problem we suggest to install Babel and rename your `gulpfile.js` as `gulpfile.babel.js`. +Node already supports a lot of __ES2015+__ features, but to avoid compatibility problems we suggest to install Babel and rename your `gulpfile.js` as `gulpfile.babel.js`. ```sh -npm install --save-dev babel-register babel-preset-es2015 +npm install --save-dev @babel/register @babel/core @babel/preset-env ``` Then create a **.babelrc** file with the preset configuration. ```js { - "presets": [ "es2015" ] + "presets": [ "@babel/preset-env" ] } ``` -And here's the same sample from above written in **ES2015**. +And here's the same sample from above written in **ES2015+**. ```js import gulp from 'gulp';