HMR middleware does not recognize file changes if the path includes brackets #767
Description
Title
HMR middleware does not recognize file changes if the path includes brackets
Functional impact
Changes to files do not trigger a webpack recompile and consequently no changes are propagated to browser.
Minimal repro steps
Create a directory with brackets e.g. ("c:\temp\test\With (Brackets)") and run "yo aspnetcore-spa" with React/Redux and CSPROJ setting. Load project in Visual Studio, run it, change Home.tsx and the change will not propagate to the browser. This is despite the browser showing [HMR] connected.
Change the directory name to "NoBrackets" and the identical project will work flawlessly.
Expected result
Changes should be propagated to the browser regardless of brackest.
Actual result
The browser is not refreshing the view and showing the old version.
Further technical details
Unfortunately if you link a business Dropbox to your personal Dropbox it changes the personal Dropbox path to "Dropbox (Private)" which is where this issue popped up for me.