Skip to content

Commit

Permalink
Fix --presets use in CLI examples
Browse files Browse the repository at this point in the history
These probably got copy pasted incorrectly in
babel#255
  • Loading branch information
goto-bus-stop committed Apr 20, 2018
1 parent c5e4d40 commit cf94014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -19,7 +19,7 @@ $ npm install --save-dev babelify babel-core
### CLI

```sh
$ browserify script.js -o bundle.js -t [ babelify --presets [ "@babel/preset-env", "@babel/preset-react" ] ]
$ browserify script.js -o bundle.js -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ]
```

### Node
Expand All @@ -46,7 +46,7 @@ Selected options are discussed below. See the [babel](http://babeljs.io/) docs f
Options may be passed in via standard [browserify](https://github.com/substack/node-browserify#btransformtr-opts) ways:

```sh
$ browserify -t [ babelify --presets [ "@babel/preset-env", "@babel/preset-react" ] ]
$ browserify -t [ babelify --presets [ @babel/preset-env @babel/preset-react ] ]
```

```js
Expand Down

0 comments on commit cf94014

Please sign in to comment.