Skip to content

Commit fb11643

Browse files
saurabhdawareruyadorno
authored andcommitted
doc: add performance note to --enable-source-maps docs
PR-URL: #43817 Reviewed-By: Ben Coe <bencoe@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent ee6412a commit fb11643

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/api/cli.md

+5
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ 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+
Note, enabling source maps can introduce latency to your application
284+
when `Error.stack` is accessed. If you access `Error.stack` frequently
285+
in your application, take into account the performance implications
286+
of `--enable-source-maps`.
287+
283288
### `--experimental-global-customevent`
284289

285290
<!-- YAML

0 commit comments

Comments
 (0)