File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -192,14 +192,21 @@ Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
192
192
### ` --enable-source-maps `
193
193
<!-- YAML
194
194
added: v12.12.0
195
+ changes:
196
+ - version: REPLACEME
197
+ pr-url: https://github.com/nodejs/node/pull/37362
198
+ description: This API is no longer experimental.
195
199
-->
196
200
197
- > Stability: 1 - Experimental
201
+ Enable [ Source Map v3 ] [ Source Map ] support for stack traces.
198
202
199
- Enable experimental Source Map v3 support for stack traces.
203
+ When using a transpiler, such as TypeScript, strack traces thrown by an
204
+ application reference the transpiled code, not the original source position.
205
+ ` --enable-source-maps ` enables caching of Source Maps and makes a best
206
+ effort to report stack traces relative to the original source file.
200
207
201
- Currently, overriding ` Error.prepareStackTrace ` is ignored when the
202
- ` --enable-source-maps ` flag is set .
208
+ Overriding ` Error.prepareStackTrace ` prevents ` --enable-source-maps ` from
209
+ modifiying the stack trace .
203
210
204
211
### ` --experimental-abortcontroller `
205
212
<!-- YAML
You can’t perform that action at this time.
0 commit comments