From 0467b01078c3b6c10b13fa17e585bc5650caccb4 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Sat, 1 Jun 2019 20:14:05 +0800 Subject: [PATCH] Update Gulp.md to downgrade Babelify from latest(10.x) to 8.x. PR921 --- doc/handbook/tutorials/Gulp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/handbook/tutorials/Gulp.md b/doc/handbook/tutorials/Gulp.md index 200685c..0d32d71 100644 --- a/doc/handbook/tutorials/Gulp.md +++ b/doc/handbook/tutorials/Gulp.md @@ -398,7 +398,7 @@ cat dist/bundle.js 默认情况下Babelify只会处理扩展名为`.js`,`.es`,`.es6`和`.jsx`的文件,因此我们需要添加`.ts`扩展名到Babelify选项。 ```shell -npm install --save-dev babelify babel-core babel-preset-es2015 vinyl-buffer gulp-sourcemaps +npm install --save-dev babelify@8 babel-core babel-preset-es2015 vinyl-buffer gulp-sourcemaps ``` 修改gulpfile文件如下: