Skip to content

Commit e27a4a9

Browse files
committed
Merge pull request ruanyf#210 from shaochuancs/bugfix
fix bug to remove unnecessary preset
2 parents f7494bc + 9c5d80d commit e27a4a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ $ npm install --save-dev babelify babel-preset-es2015
395395

396396
```bash
397397
$ browserify script.js -o bundle.js \
398-
-t [ babelify --presets [ es2015 react ] ]
398+
-t [ babelify --presets [ es2015 ] ]
399399
```
400400

401401
上面代码将ES6脚本`script.js`,转为`bundle.js`,浏览器直接加载后者就可以了。

0 commit comments

Comments
 (0)