doc: fix specifier example in esm.md
PR-URL: https://github.com/nodejs/node/pull/43351 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
parent
85f8821f4d
commit
923f355855
@ -120,8 +120,9 @@ This section was moved to [Modules: Packages](packages.md).
|
||||
### Terminology
|
||||
|
||||
The _specifier_ of an `import` statement is the string after the `from` keyword,
|
||||
e.g. `'path'` in `import { sep } from 'node:path'`. Specifiers are also used in
|
||||
`export from` statements, and as the argument to an `import()` expression.
|
||||
e.g. `'node:path'` in `import { sep } from 'node:path'`. Specifiers are also
|
||||
used in `export from` statements, and as the argument to an `import()`
|
||||
expression.
|
||||
|
||||
There are three types of specifiers:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user