Skip to content

Conversation

@RubenKelevra
Copy link
Contributor

@RubenKelevra RubenKelevra commented Feb 9, 2026

Hey @lidel, first contribution from me here in a long while :)

This PR is prep work for updating electron-serve.

Newer versions are ESM-only, so require('electron-serve') breaks. To unblock that dependency update, this switches electron-serve initialization to a dynamic import() and awaits it during WebUI init so the webui://-scheme is registered before any WebUI URLs are loaded. It also disables v8-compile-cache, which was causing import() to fail in this process.

Testing: I can only test on Linux. I've tested core functionality of the app under Linux with Electron 39.5.1 (start/stop daemon, WebUI navigation, tray menu actions, Files tab basics).

Outlook: I have more dependency updates and cleanups lined up. I'll send them as small consecutive PRs to keep each review focused and easy to approve.

v8-compile-cache breaks dynamic import() in this process.
electron-serve is ESM in newer versions, which breaks CommonJS require().

Kick off electron-serve initialization at module load and await it during init so the webui:// scheme is registered before we create windows / load URLs.
@RubenKelevra RubenKelevra requested a review from a team as a code owner February 9, 2026 14:26
@RubenKelevra
Copy link
Contributor Author

@lidel looks like the CI could use some love :)

@lidel
Copy link
Member

lidel commented Feb 10, 2026

Thank you @RubenKelevra!

Just to set expectation, I'll likely get to reviewing these once Kubo 0.40.0-rc1 ships (i have limited availability this week)

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