Skip to content

Commit 51b4a1b

Browse files
saurabhdawaredanielleadams
authored andcommitted
doc: add performance note to --enable-source-maps docs
PR-URL: #43817 Reviewed-By: Ben Coe <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 63b5c49 commit 51b4a1b

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
@@ -336,6 +336,11 @@ effort to report stack traces relative to the original source file.
336336
Overriding `Error.prepareStackTrace` prevents `--enable-source-maps` from
337337
modifying the stack trace.
338338

339+
Note, enabling source maps can introduce latency to your application
340+
when `Error.stack` is accessed. If you access `Error.stack` frequently
341+
in your application, take into account the performance implications
342+
of `--enable-source-maps`.
343+
339344
### `--experimental-global-customevent`
340345

341346
<!-- YAML

0 commit comments

Comments
 (0)