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

Fix Hot Reload on Electron #1394

Merged

Conversation

rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Oct 9, 2024

This fixes the Hot Module Replacement functionality on Electron development.

Kapture.2024-10-10.at.14.45.01.mp4

This can be easily changed with the following: choose some component in the screen, like the Alerter.vue, and change its background color. You will see that before this patch it doesn't change live, and instead one needs to reload the vite server.

I originally planned to replace vite-plugin-electron with electron-vite, which is better maintained, better documented and simpler to use, but I got the former to work, so I think we can stick with it for a while and change it only if we find some wall.

Previously used version was from 2 years ago and had problems in the Hot Module Replacement functionality.
@rafaellehmkuhl rafaellehmkuhl marked this pull request as draft October 9, 2024 19:09
@rafaellehmkuhl
Copy link
Member Author

Converted to draft as its breaking the CI 🫠

@rafaellehmkuhl rafaellehmkuhl force-pushed the some-plumbing-electron-work branch from b1dc119 to 3f3691f Compare October 9, 2024 19:25
@rafaellehmkuhl rafaellehmkuhl force-pushed the some-plumbing-electron-work branch from 3f3691f to e8dea79 Compare October 9, 2024 19:27
@rafaellehmkuhl rafaellehmkuhl marked this pull request as ready for review October 9, 2024 19:37
@rafaellehmkuhl
Copy link
Member Author

@ArturoManzoli everything is now working!

@ArturoManzoli ArturoManzoli merged commit e0d1a40 into bluerobotics:master Oct 10, 2024
10 checks passed
@rafaellehmkuhl rafaellehmkuhl deleted the some-plumbing-electron-work branch October 10, 2024 17:58
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