Skip to content

remove deprecated react-hot-loader dependency - #649

Draft
dannycolin wants to merge 4 commits into
mozilla-frontend-infra:mainfrom
dannycolin:remove-react-hot-loader
Draft

remove deprecated react-hot-loader dependency#649
dannycolin wants to merge 4 commits into
mozilla-frontend-infra:mainfrom
dannycolin:remove-react-hot-loader

Conversation

@dannycolin

Copy link
Copy Markdown
Collaborator

react-hot-loader has been deprecated for years in favour of Fast Refresh. This patch removes it but it doesn't implement Fast Refresh just yet. This is because our bundler (Webpack 4) is also pretty old and we need more clean up and update before we can easily add more modern tools.

So, this patch is only the clean up step. It doesn't remove any user facing feature and it's only a minor inconvenient when in developer mode since you might have to manually refresh the page and/or lose form information when a refresh happens after saving your change in the codebase.

@dannycolin
dannycolin requested a review from lotas July 3, 2026 02:45
@lotas

lotas commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Thanks for removing this. Do you know what's up with the lockfile? Maybe we are using an outdated yarn? All CI tasks failed to install dependencies

@dannycolin

Copy link
Copy Markdown
Collaborator Author

Thanks for removing this. Do you know what's up with the lockfile? Maybe we are using an outdated yarn? All CI tasks failed to install dependencies

I wonder if the lockfile isn't simply corrupted because I used npm to install the packages on my local environment.

@dannycolin
dannycolin force-pushed the remove-react-hot-loader branch from 58bdd7f to 09c9783 Compare July 4, 2026 04:43
@dannycolin

Copy link
Copy Markdown
Collaborator Author

I wonder if the lockfile isn't simply corrupted because I used npm to install the packages on my local environment.

Looks like the lockfile was indeed corrupted but there's another yarn issue now because many of our dependencies are outdated. Sidenote, it strangely works fine if you use npm instead of yarn.

I'll see if it's worth fixing it this week. If not, we (well me) have to consider a more drastic approach.

@dannycolin
dannycolin force-pushed the remove-react-hot-loader branch from f799b99 to db3bfbc Compare July 9, 2026 00:20
@dannycolin
dannycolin force-pushed the remove-react-hot-loader branch from 97049b6 to fcda969 Compare July 9, 2026 00:33
@dannycolin
dannycolin marked this pull request as draft July 9, 2026 00:44
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