Skip to content

Commit d8987a6

Browse files
committedMay 16, 2021
doc: remove import.meta.resolve parent URL type
Support for parent argument of type `URL` was added in #38587, which has not been backported to previous releases yet. Update docs for v14.x to remove the URL type for this argument. Signed-off-by: Kevin Locke <[email protected]>
1 parent d678277 commit d8987a6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎doc/api/esm.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,19 @@ const buffer = readFileSync(new URL('./data.proto', import.meta.url));
271271
```
272272
273273
### `import.meta.resolve(specifier[, parent])`
274+
<!--
275+
added:
276+
- v13.9.0
277+
- v12.16.0
278+
-->
274279
275280
> Stability: 1 - Experimental
276281
277282
This feature is only available with the `--experimental-import-meta-resolve`
278283
command flag enabled.
279284
280285
* `specifier` {string} The module specifier to resolve relative to `parent`.
281-
* `parent` {string|URL} The absolute parent module URL to resolve from. If none
286+
* `parent` {string} The absolute parent module URL to resolve from. If none
282287
is specified, the value of `import.meta.url` is used as the default.
283288
* Returns: {Promise}
284289

0 commit comments

Comments
 (0)
Please sign in to comment.