From ac7f437d37ca2ce5cccfdf769cbfd63685c39c09 Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Mon, 24 Oct 2022 16:24:20 +0800 Subject: [PATCH] doc: Modify `babel-cli` documentation (#2683) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nicolò Ribaudo --- docs/cli.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/cli.md b/docs/cli.md index 1521155d90..fd7817e450 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -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