mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
module: document parentURL in register options
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
3ab6143380
commit
43e9f0bc65
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user