diff options
author | Saurabh Daware <saurabhdaware99@gmail.com> | 2022-08-06 19:15:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 19:15:13 +0300 |
commit | 433e9bbefeb070fd3aafd12ea50ba33b5e4bc120 (patch) | |
tree | 5c6511c7b699fd6161372e89052a83fc48a2c33f /doc/api/cli.md | |
parent | 0a2c910ae9b2c86b9be5f8347e503b716e3f5241 (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/api/cli.md')
-rw-r--r-- | doc/api/cli.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index b94a0a586c5..97864f15a64 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -336,6 +336,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-global-customevent` <!-- YAML |