Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hmr): make watcher ignore build.outDir #15326

Merged
merged 4 commits into from
Jan 9, 2024

Conversation

nozomuikuta
Copy link
Contributor

Description

Resolves #15241
I just added build.outDir to Chokidar's ignored option.

Additional context

This is my very first PR to Vite, so I might be missing something important.
Please be careful.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

I guess watching build.outDir is unexpected, so it's a bug.

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.

I'm not sure how to unit-test this PR.
I confirmed that this PR resolves the original issue by following reproduction steps of it.

Copy link

stackblitz bot commented Dec 12, 2023

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

@patak-dev patak-dev added the p2-nice-to-have Not breaking anything but nice to have (priority) label Dec 12, 2023
@patak-dev
Copy link
Member

Thanks for the PR @nozomuikuta! I'll add this one to the team board for discussion. If we merge it, we will be doing it as part of the next minor (we may take a few weeks to answer because of the holiday season).

@patak-dev patak-dev added this to the 5.1 milestone Dec 12, 2023
bluwy
bluwy previously approved these changes Dec 20, 2023
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

LGTM. I don't see a reason to not ignore it.

docs/config/server-options.md Outdated Show resolved Hide resolved
@nozomuikuta nozomuikuta requested a review from bluwy December 21, 2023 15:24
patak-dev
patak-dev previously approved these changes Jan 8, 2024
@nozomuikuta nozomuikuta dismissed stale reviews from patak-dev and bluwy via d152d82 January 9, 2024 01:01
@nozomuikuta
Copy link
Contributor Author

@patak-dev

Thank you for approving the PR!

I found this PR came to conflict with the latest main branch so resolved it.
Would you check the code again just in case?

By the way, is it fine to close #15326 (comment) without applying the change?

@nozomuikuta nozomuikuta requested a review from patak-dev January 9, 2024 01:06
@patak-dev
Copy link
Member

@nozomuikuta I think you should commit your proposed change at https://github.com/vitejs/vite/pull/15326/files#r1434206818 👍🏼

@nozomuikuta
Copy link
Contributor Author

@patak-dev

Committed it and resolved the conversation! 🚀

@patak-dev patak-dev merged commit 2836276 into vitejs:main Jan 9, 2024
10 checks passed
@nozomuikuta nozomuikuta deleted the fix/watch-out-dir branch January 9, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

outDir not ignored in watched files
3 participants