Skip to content

Commit 342ddb0

Browse files
module: document parentURL in register options
PR-URL: #51039 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
1 parent ac9e594 commit 342ddb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/module.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ changes:
103103
URL, such as `import.meta.url`, you can pass that URL here. **Default:**
104104
`'data:'`
105105
* `options` {Object}
106+
* `parentURL` {string|URL} If you want to resolve `specifier` relative to a
107+
base URL, such as `import.meta.url`, you can pass that URL here. This
108+
property is ignored if the `parentURL` is supplied as the second argument.
109+
**Default:** `'data:'`
106110
* `data` {any} Any arbitrary, cloneable JavaScript value to pass into the
107111
[`initialize`][] hook.
108112
* `transferList` {Object\[]} [transferrable objects][] to be passed into the

0 commit comments

Comments
 (0)