Skip to content

fix: ensure config loading happens sequentially#3084

Merged
elliott-with-the-longest-name-on-github merged 1 commit into
masterfrom
fix-lock
Jul 25, 2026
Merged

fix: ensure config loading happens sequentially#3084
elliott-with-the-longest-name-on-github merged 1 commit into
masterfrom
fix-lock

Conversation

@Rich-Harris

Copy link
Copy Markdown
Member

The current mechanism for ensuring that config loading is sequential is buggy — it's possible for multiple invocations to await the same resolving promise. This, in turn, causes module-level state in the SvelteKit Vite plugin to get corrupted. That bug should be fixed as well as this one

@changeset-bot

changeset-bot Bot commented Jul 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 54aac3c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/load-config Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@elliott-with-the-longest-name-on-github
elliott-with-the-longest-name-on-github merged commit 62b980f into master Jul 25, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 25, 2026
Rich-Harris added a commit to sveltejs/kit that referenced this pull request Jul 25, 2026
The other side of sveltejs/language-tools#3084.
This fixes a case where `svelte-check` sometimes fails by reading
multiple Vite configs in the same process, getting the `root` mixed up
between them

Either fix should prevent `svelte-check` raciness, but both should be
applied.
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.

2 participants