зеркало из https://github.com/electron/electron.git
Родитель
38ef9a7690
Коммит
0a7df0ef3d
|
@ -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.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче