Skip to content

Commit

Permalink
doc: add performance note to --enable-source-maps docs
Browse files Browse the repository at this point in the history
PR-URL: #43817
Reviewed-By: Ben Coe <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
  • Loading branch information
saurabhdaware authored and danielleadams committed Aug 15, 2022
1 parent 63b5c49 commit 51b4a1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51b4a1b

Please sign in to comment.