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 @@ -188,14 +188,21 @@ Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
188188### ` --enable-source-maps `
189189<!-- YAML
190190added: 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.
191195-->
192196
193- > Stability: 1 - Experimental
197+ Enable [ Source Map v3 ] [ Source Map ] support for stack traces.
194198
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.
196203
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 .
199206
200207### ` --experimental-abortcontroller `
201208<!-- YAML
You can’t perform that action at this time.
0 commit comments