Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,19 @@ const buffer = readFileSync(new URL('./data.proto', import.meta.url));

### `import.meta.resolve(specifier)`

<!--
<!-- YAML
added:
- v13.9.0
- v12.16.2
changes:
- version: 20.6.0
- version: v20.6.0
pr-url: https://github.com/nodejs/node/pull/49028
description: No longer behind the `--experimental-import-meta-resolve` flag.
description: Unflag `import.meta.resolve``, with `parentURL` parameter still
flagged.
- version: v20.6.0
pr-url: https://github.com/nodejs/node/pull/49038
description: This API no longer throws when targeting `file:` URLs that do
not map to an existing file on the local FS.
- version: v20.0.0
pr-url: https://github.com/nodejs/node/pull/44710
description: This API now returns a string synchronously instead of a Promise.
Expand All @@ -340,11 +345,6 @@ changes:
- v14.18.0
pr-url: https://github.com/nodejs/node/pull/38587
description: Add support for WHATWG `URL` object to `parentURL` parameter.
- version:
- v20.6.0
pr-url: https://github.com/nodejs/node/pull/49028
description: Unflag import.meta.resolve, with `parentURL` parameter still
flagged.
-->

> Stability: 1.2 - Release candidate
Expand Down