Skip to content

Commit 1eec170

Browse files
committed
doc: fix formatting of import.meta.filename section
And `import.meta.dirname`. PR-URL: #58079 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent 7f108de commit 1eec170

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
@@ -355,8 +355,9 @@ changes:
355355
description: This property is no longer experimental.
356356
-->
357357

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

361362
> **Caveat**: only present on `file:` modules.
362363
@@ -374,8 +375,8 @@ changes:
374375

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

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

0 commit comments

Comments
 (0)