doc: rephrase dynamic import() description · nodejs/node@9833dc6 · GitHub
Skip to content

Commit 9833dc6

Browse files
meteorqz6aduh95
authored andcommitted
doc: rephrase dynamic import() description
The description is updated to clarify that dynamic import() is asynchronous, dynamic, and works in both CJS and ESM contexts. The new phrasing also avoids implying it is the only method for loading ES modules in CommonJS. Fixes: #59077 PR-URL: #59224 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent bb6fd7c commit 9833dc6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/api/esm.md

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)