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>
This commit is contained in:
Saurabh Daware authored and GitHub committed 2022-08-07 00:15:13 +08:00
1 parent 0a2c910ae9
commit 433e9bbefe
1 file changed
+5
+5
View File
@@ -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