You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a file is imported with the uppercase filename, the watcher will still be registered on the lowercase filename. If the collectTimeInfoEntries function is called, the time info entries for the uppercase names are requested, but they are not in the map and null is returned. Somewhere else in Webpack this leads to the module not being invalidated because null has a meaning of the file not existing at all.
Sending a PR for this!
The text was updated successfully, but these errors were encountered:
The following example is case-sensitive!
Given a file
b.tsx
:Being imported in
a.tsx
with the wrong casing:Will result in Fast refresh working once, but not twice. This behavior can also be seen in Next.JS, reproduction here: https://github.com/JonnyBurger/watchpack-bug-repro To reproduce, Change the content in
Hello.tsx
twice.If a file is imported with the uppercase filename, the watcher will still be registered on the lowercase filename. If the
collectTimeInfoEntries
function is called, the time info entries for the uppercase names are requested, but they are not in the map andnull
is returned. Somewhere else in Webpack this leads to the module not being invalidated becausenull
has a meaning of the file not existing at all.Sending a PR for this!
The text was updated successfully, but these errors were encountered: