@@ -1568,7 +1568,7 @@ Running `node --import 'data:text/javascript,import { register } from "node:modu
15681568or ` node --import ./import-map-sync-hooks.js main.js`
15691569should print ` some module!` .
15701570
1571- ## Source map v3 support
1571+ ## Source Map Support
15721572
15731573<!-- YAML
15741574added:
@@ -1578,13 +1578,17 @@ added:
15781578
15791579> Stability: 1 - Experimental
15801580
1581- Helpers for interacting with the source map cache. This cache is
1582- populated when source map parsing is enabled and
1581+ Node.js supports TC39 ECMA-426 [Source Map][] format (it was called Source map
1582+ revision 3 format).
1583+
1584+ The APIs in this section are helpers for interacting with the source map
1585+ cache. This cache is populated when source map parsing is enabled and
15831586[source map include directives][] are found in a modules' footer.
15841587
15851588To enable source map parsing, Node.js must be run with the flag
15861589[` --enable-source-maps` ][], or with code coverage enabled by setting
1587- [` NODE_V8_COVERAGE=dir` ][].
1590+ [` NODE_V8_COVERAGE=dir` ][], or be enabled programmatically via
1591+ [` module.setSourceMapsSupport()` ][].
15881592
15891593` ` ` mjs
15901594// module.mjs
@@ -1682,7 +1686,7 @@ changes:
16821686
16831687Creates a new ` sourceMap` instance.
16841688
1685- ` payload` is an object with keys matching the [Source map v3 format][]:
1689+ ` payload` is an object with keys matching the [Source map format][]:
16861690
16871691* ` file` : {string}
16881692* ` version` : {number}
@@ -1773,8 +1777,8 @@ returned object contains the following keys:
17731777[Customization hooks]: #customization-hooks
17741778[ES Modules]: esm.md
17751779[Permission Model]: permissions.md#permission-model
1776- [Source Map]: https://sourcemaps.info/spec.html
1777- [Source map v3 format]: https://sourcemaps.info/spec.html#h.mofvlxcwqzej
1780+ [Source Map]: https://tc39.es/ecma426/
1781+ [Source map format]: https://tc39.es/ecma426/#sec-source-map-format
17781782[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
17791783[V8 code cache]: https://v8.dev/blog/code-caching-for-devs
17801784[` " exports" ` ]: packages.md#exports
@@ -1790,6 +1794,7 @@ returned object contains the following keys:
17901794[` module.enableCompileCache()` ]: #moduleenablecompilecachecachedir
17911795[` module.flushCompileCache()` ]: #moduleflushcompilecache
17921796[` module.getCompileCacheDir()` ]: #modulegetcompilecachedir
1797+ [` module.setSourceMapsSupport()` ]: #modulesetsourcemapssupportenabled-options
17931798[` module` ]: #the-module-object
17941799[` os.tmpdir()` ]: os.md#ostmpdir
17951800[` registerHooks` ]: #moduleregisterhooksoptions
@@ -1802,7 +1807,7 @@ returned object contains the following keys:
18021807[module wrapper]: modules.md#the-module-wrapper
18031808[realm]: https://tc39.es/ecma262/#realm
18041809[resolve hook]: #resolvespecifier-context-nextresolve
1805- [source map include directives]: https://sourcemaps.info/spec.html#h.lmz475t4mvbx
1810+ [source map include directives]: https://tc39.es/ecma426/#sec-linking-generated-code
18061811[the documentation of ` Worker` ]: worker_threads.md#new-workerfilename-options
18071812[transferable objects]: worker_threads.md#portpostmessagevalue-transferlist
18081813[transform TypeScript features]: typescript.md#typescript-features
0 commit comments