Skip to content

Commit

Permalink
docs(cli): add performance warning to --enable-source-maps docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware authored Jul 13, 2022
1 parent 99b109f commit 4f667ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ effort to report stack traces relative to the original source file.
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
modifying the stack trace.

> **Warning**
>
> Using `--enable-source-maps` may degrade performance in large codebases and can cause CPU bumps. Make sure to not use this flag in production. The issue can be tracked in [nodejs/node#41541](https://github.com/nodejs/node/issues/41541)
### `--experimental-global-webcrypto`

<!-- YAML
Expand Down

0 comments on commit 4f667ae

Please sign in to comment.