Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Modify babel-cli documentation #2683

Merged
merged 2 commits into from Oct 24, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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).
liuxingbaoyu marked this conversation as resolved.
Show resolved Hide resolved

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