Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSaurabh Daware <saurabhdaware99@gmail.com>2022-08-06 19:15:13 +0300
committerJuan José Arboleda <soyjuanarbol@gmail.com>2022-10-11 22:45:21 +0300
commit5c721a33c3f13657a7407d668293b3cd2318a283 (patch)
tree9f7abb65255d9c07931d0c244bdaca7b94226ec3 /doc
parentac8d2de3b02c725c427c86e40a735f223b122c04 (diff)
doc: add performance note to `--enable-source-maps` docs
PR-URL: https://github.com/nodejs/node/pull/43817 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cli.md5
1 files changed, 5 insertions, 0 deletions
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`
<!-- YAML