Skip to content

Commit cdb3d01

Browse files
aduh95RafaelGSS
authored andcommitted
doc: fix formatting of import.meta.filename section
And `import.meta.dirname`. PR-URL: #58079 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent 0557d60 commit cdb3d01

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/api/esm.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,9 @@ changes:
356356
description: This property is no longer experimental.
357357
-->
358358

359-
* {string} The directory name of the current module. This is the same as the
360-
[`path.dirname()`][] of the [`import.meta.filename`][].
359+
* {string} The directory name of the current module.
360+
361+
This is the same as the [`path.dirname()`][] of the [`import.meta.filename`][].
361362

362363
> **Caveat**: only present on `file:` modules.
363364
@@ -375,8 +376,8 @@ changes:
375376

376377
* {string} The full absolute path and filename of the current module, with
377378
symlinks resolved.
378-
* This is the same as the [`url.fileURLToPath()`][] of the
379-
[`import.meta.url`][].
379+
380+
This is the same as the [`url.fileURLToPath()`][] of the [`import.meta.url`][].
380381

381382
> **Caveat** only local modules support this property. Modules not using the
382383
> `file:` protocol will not provide it.

0 commit comments

Comments
 (0)