From 4f667ae1da13ff27123d8256123c7626234ab4a6 Mon Sep 17 00:00:00 2001 From: Saurabh Daware Date: Wed, 13 Jul 2022 18:00:00 +0530 Subject: [PATCH] docs(cli): add performance warning to `--enable-source-maps` docs --- doc/api/cli.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index a2861024659af2..8d0856d3d602c6 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -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`