From 7239cf197ba69f4ae729da792013794faec6a90f Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 19 Nov 2018 12:44:18 -0700 Subject: [PATCH] Docs: Update the babel dependencies to install & configuration needed (closes #2136) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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';