From 50b808efc1c934ce6d40bd10d7f94cdfa5303581 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 6 Dec 2023 15:37:42 +0900 Subject: [PATCH] module: document `parentURL` in register options --- doc/api/module.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/module.md b/doc/api/module.md index 83f4b6e32f8d0d..ee938953abeeca 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -103,6 +103,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