Skip to content

fix: await configResolved hooks of worker plugins - #15597

Merged
patak-cat merged 2 commits into
vitejs:mainfrom
aleclarson:fix/await-worker-plugin-configResolved
Jan 15, 2024
Merged

fix: await configResolved hooks of worker plugins#15597
patak-cat merged 2 commits into
vitejs:mainfrom
aleclarson:fix/await-worker-plugin-configResolved

Conversation

@aleclarson

Copy link
Copy Markdown
Contributor

Description

The configResolved hook should always be awaited, but it's not for worker plugins. This is the cause of a bug in vite-tsconfig-paths for Vite 5 users.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines, especially the Pull Request Guidelines.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Update the corresponding documentation if needed.
  • Ideally, include relevant tests that fail without this PR but pass with it.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@ArnaudBarre ArnaudBarre 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.

Running prettier should makes it easier to review

@aleclarson
aleclarson force-pushed the fix/await-worker-plugin-configResolved branch from e741b0b to 617cd6a Compare January 14, 2024 21:54
@aleclarson

Copy link
Copy Markdown
Contributor Author

@ArnaudBarre Good point, thanks!

@patak-cat
patak-cat enabled auto-merge (squash) January 15, 2024 09:46
@patak-cat
patak-cat merged commit 03c8004 into vitejs:main Jan 15, 2024
@patak-cat

Copy link
Copy Markdown
Member

Thanks Alec! Ported it to 5.0 here #15605

@patak-cat patak-cat added regression The issue only appears after a new release p3-minor-bug An edge case that only affects very specific usage (priority) labels Jan 15, 2024
patak-cat added a commit that referenced this pull request Jan 18, 2024
Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p3-minor-bug An edge case that only affects very specific usage (priority) regression The issue only appears after a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants