Skip to content

Commit 5c721a3

Browse files
saurabhdawarejuanarbol
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 ac8d2de commit 5c721a3

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

275+
Note, enabling source maps can introduce latency to your application
276+
when `Error.stack` is accessed. If you access `Error.stack` frequently
277+
in your application, take into account the performance implications
278+
of `--enable-source-maps`.
279+
275280
### `--experimental-fetch`
276281

277282
<!-- YAML

0 commit comments

Comments
 (0)