Skip to content

Commit 4f667ae

Browse files
docs(cli): add performance warning to --enable-source-maps docs
1 parent 99b109f commit 4f667ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/api/cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ effort to report stack traces relative to the original source file.
280280
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
281281
modifying the stack trace.
282282

283+
> **Warning**
284+
>
285+
> 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)
286+
283287
### `--experimental-global-webcrypto`
284288

285289
<!-- YAML

0 commit comments

Comments
 (0)