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

feat: Chokidar use polling on rollup watch #268

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

largis21
Copy link
Contributor

I had some issues where npm run watch would only register changes once on WSL/NVIM, turns out there is something called safe-write that some editors implement. Either way it could be turned off in nvim with :set backupcopy=yes, or setting a usePolling property on the chokidar watch config, which is what rollup watch uses when available. How you want to implement this or if you want to is ofcourse up to you. Maybe detecting safe-write is possible. There is some discussion on this thread: parcel-bundler/parcel#221 (comment)

@largis21 largis21 requested a review from a team as a code owner October 14, 2023 15:04
@stipsan stipsan self-assigned this Oct 16, 2023
Copy link
Member

@stipsan stipsan left a comment

Choose a reason for hiding this comment

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

Thanks!

@stipsan stipsan merged commit 1d63c2f into sanity-io:main Oct 16, 2023
4 of 5 checks passed
@ecospark ecospark bot mentioned this pull request Oct 16, 2023
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.

None yet

2 participants