Skip to content

Commit 43e9f0b

Browse files
privatenumberrichardlau
authored andcommittedMar 25, 2024
module: document parentURL in register options
PR-URL: #51039 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]>
1 parent 3ab6143 commit 43e9f0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎doc/api/module.md

+4
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ changes:
9999
URL, such as `import.meta.url`, you can pass that URL here. **Default:**
100100
`'data:'`
101101
* `options` {Object}
102+
* `parentURL` {string|URL} If you want to resolve `specifier` relative to a
103+
base URL, such as `import.meta.url`, you can pass that URL here. This
104+
property is ignored if the `parentURL` is supplied as the second argument.
105+
**Default:** `'data:'`
102106
* `data` {any} Any arbitrary, cloneable JavaScript value to pass into the
103107
[`initialize`][] hook.
104108
* `transferList` {Object\[]} [transferrable objects][] to be passed into the

0 commit comments

Comments
 (0)
Please sign in to comment.