From 8ee87f5870d3192c642a734d1fc647c77f89a33f Mon Sep 17 00:00:00 2001 From: Saurabh Daware Date: Sat, 6 Aug 2022 21:45:13 +0530 Subject: [PATCH] doc: add performance note to `--enable-source-maps` docs PR-URL: https://github.com/nodejs/node/pull/43817 Reviewed-By: Ben Coe Reviewed-By: Chengzhong Wu --- doc/api/cli.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/cli.md b/doc/api/cli.md index e496abe0834..5993929a8b8 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -272,6 +272,11 @@ effort to report stack traces relative to the original source file. Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from modifying the stack trace. +Note, enabling source maps can introduce latency to your application +when `Error.stack` is accessed. If you access `Error.stack` frequently +in your application, take into account the performance implications +of `--enable-source-maps`. + ### `--experimental-fetch`