Skip to content

Commit

Permalink
module: document parentURL in register options
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
privatenumber authored and richardlau committed Mar 25, 2024
1 parent 3ab6143 commit 43e9f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ changes:
URL, such as `import.meta.url`, you can pass that URL here. **Default:**
`'data:'`
* `options` {Object}
* `parentURL` {string|URL} If you want to resolve `specifier` relative to a
base URL, such as `import.meta.url`, you can pass that URL here. This
property is ignored if the `parentURL` is supplied as the second argument.
**Default:** `'data:'`
* `data` {any} Any arbitrary, cloneable JavaScript value to pass into the
[`initialize`][] hook.
* `transferList` {Object\[]} [transferrable objects][] to be passed into the
Expand Down

0 comments on commit 43e9f0b

Please sign in to comment.