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