From 0a7df0ef3deb0a76b4a372d180c6139ecb2f3995 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Wed, 10 Apr 2024 05:25:13 -0300 Subject: [PATCH] docs: typo fix (#41787) Typo fix --- docs/tutorial/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/esm.md b/docs/tutorial/esm.md index 6fb7ea729ba..0dc0953a366 100644 --- a/docs/tutorial/esm.md +++ b/docs/tutorial/esm.md @@ -59,7 +59,7 @@ need to be called **before** the app's `ready` event is emitted. With top-level `await` available in Node.js ESM, make sure to `await` every Promise that you need to execute before the `ready` event. Otherwise, your app may be `ready` before your code executes. -This is particularly important to keep in mind for dynamic ESM import statmements (static imports are unaffected). +This is particularly important to keep in mind for dynamic ESM import statements (static imports are unaffected). For example, if `index.mjs` calls `import('./set-up-paths.mjs')` at the top level, the app will likely already be `ready` by the time that dynamic import resolves.