From c0e5e7487680cd6e65a72c41ef8cc6acf2552e6b Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Wed, 6 Dec 2023 17:55:45 +0900 Subject: [PATCH] module: document `parentURL` in register options PR-URL: https://github.com/nodejs/node/pull/51039 Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca Reviewed-By: Jacob Smith Reviewed-By: Geoffrey Booth --- doc/api/module.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/module.md b/doc/api/module.md index 394af95ac00b41..874b26fc60abf7 100644 --- a/doc/api/module.md +++ b/doc/api/module.md @@ -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