mirror of
https://github.com/nodejs/node.git
synced 2025-04-28 05:25:19 +00:00
esm: graduate import.meta properties
Mark as no longer experimental: * `import.meta.dirname` * `import.meta.filename` PR-URL: https://github.com/nodejs/node/pull/58011 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
This commit is contained in:
parent
e0cf8ae62a
commit
c1b15a49be
@ -350,10 +350,12 @@ properties. It is only supported in ES modules.
|
||||
added:
|
||||
- v21.2.0
|
||||
- v20.11.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/58011
|
||||
description: This property is no longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1.2 - Release candidate
|
||||
|
||||
* {string} The directory name of the current module. This is the same as the
|
||||
[`path.dirname()`][] of the [`import.meta.filename`][].
|
||||
|
||||
@ -365,10 +367,12 @@ added:
|
||||
added:
|
||||
- v21.2.0
|
||||
- v20.11.0
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/58011
|
||||
description: This property is no longer experimental.
|
||||
-->
|
||||
|
||||
> Stability: 1.2 - Release candidate
|
||||
|
||||
* {string} The full absolute path and filename of the current module, with
|
||||
symlinks resolved.
|
||||
* This is the same as the [`url.fileURLToPath()`][] of the
|
||||
|
Loading…
Reference in New Issue
Block a user