Skip to content

fix: await ES module preloads before loading the application - #935

Merged
Tony133 merged 1 commit into
fastify:mainfrom
Toufiqul-27:fix/await-esm-preloads
Nov 26, 2026
Merged

Tony133 merged 1 commit into
fastify:mainfrom
Toufiqul-27:fix/await-esm-preloads

Conversation

@Toufiqul-27

Copy link
Copy Markdown
Contributor

Await ES module preloads in argument order before loading the application. The existing async forEach returns before initialization finishes.

Two regression tests fail on the base and pass with the fix.

Validation:

  • Startup tests: 59 passed, 5 skipped.
  • ESLint and TypeScript: passed.
  • Broader CLI suite: failed on Windows watch-event path matching, EBUSY cleanup, EPERM symlinks, and an unquoted workspace path. Full-suite success is not claimed.

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Tony133
Tony133 merged commit ec75f01 into fastify:main Nov 26, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants