Skip to content

chore: update chokidar to v4#5657

Merged
bjohansebas merged 6 commits intonextfrom
chokidar-udpate
Apr 26, 2026
Merged

chore: update chokidar to v4#5657
bjohansebas merged 6 commits intonextfrom
chokidar-udpate

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

Summary

Unlike #5374, which tries to keep native glob support in dev-server to maintain compatibility, this one doesn’t, instead, it simply removes it and shows how to replicate it. That’s also what rspack did in its dev-server, and I don’t think we should be doing external magic just to preserve that support.

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.76%. Comparing base (d163488) to head (342e919).
⚠️ Report is 2 commits behind head on next.

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #5657      +/-   ##
==========================================
+ Coverage   83.57%   83.76%   +0.19%     
==========================================
  Files          11       11              
  Lines        1924     1947      +23     
  Branches      707      719      +12     
==========================================
+ Hits         1608     1631      +23     
  Misses        283      283              
  Partials       33       33              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bjohansebas bjohansebas marked this pull request as draft April 1, 2026 20:59
@alexander-akait
Copy link
Copy Markdown
Member

@bjohansebas looks good for me to using glob and globSync

@bjohansebas bjohansebas marked this pull request as ready for review April 1, 2026 22:54
Comment thread lib/Server.js
? globSync(item, { cwd: watchOptions.cwd, absolute: true })
: item,
);
}
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.

Do we really need it? Can you provide cases where we broken without it?

});
});

describe("should work with ignored option using glob array", () => {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@alexander-akait here’s the test for the ignore glob, if that’s what you meant in https://github.com/webpack/webpack-dev-server/pull/5657/changes#r3027815531

Copy link
Copy Markdown
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Looks good, do we need to add something in migration guide? Feel free to merge

@bjohansebas
Copy link
Copy Markdown
Member Author

Okay, it looks like there’s an issue with Windows. I’ll check what’s going on later

@bjohansebas bjohansebas merged commit 9e36127 into next Apr 26, 2026
89 of 151 checks passed
@bjohansebas bjohansebas deleted the chokidar-udpate branch April 26, 2026 15:49
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