Skip to content

Commit

Permalink
doc: Modify babel-cli documentation (#2683)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
liuxingbaoyu and nicolo-ribaudo committed Oct 24, 2022
1 parent ddd34fc commit ac7f437
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/cli.md
Expand Up @@ -69,8 +69,10 @@ npx babel script.js --watch --out-file script-compiled.js

### Compile with Source Maps

> **Note:** Since v7.19.3, if this parameter is not specified, `@babel/cli` will follow the [configuration files](https://babeljs.io/docs/en/config-files).
If you would then like to add a **source map file** you can use
`--source-maps` or `-s`. [Learn more about source maps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/).
`--source-maps` or `-s`.

```sh
npx babel script.js --out-file script-compiled.js --source-maps
Expand Down

0 comments on commit ac7f437

Please sign in to comment.