SpacingBat3
SpacingBat3
Also my stance why I dropped ESM without introducing CJS was put there: #14. TL;DR: ESM is at this point supported everywhere (when I started as a web dev, this...
You may check the example on this project, although I think I've built config (AFAIK Forge might need some optdep for TS imports that I didn't install), it seemed to...
As of the said PR, Forge's already merged a *good enough* support for ESM here: https://github.com/electron/forge/commit/cc0d7d62685fee7d9149915799945f040533fceb :tada: Hope to see it in action!
@coredev-uk I think that's the problem of the dependency Forge uses, it might defaults to `require`. Same might go with others… Maybe also describe what running Forge with `DEBUG="*"` shows?...
That being said, standard *forge.config.js* or non-class loading (i.e. `{name: "@reforged/maker-appimage"}` in Forge config) that is actually handled by Forge directly should work just fine, other stuff is dependant on...
Now with Node's latest changes to `require()` it might actually be funny to see how ESM will do in Forge… As most stuff is still safe to be resolved synchronously,...
> I hear you, and I don't disagree, ESM is definitely the way to go. I'm just unsure what to do to make it work. `forge.config.mts` seems to not work...
Actually looking into this a bit deeper, I see this situation might see very little improvement on Forge's side if `rechoir` and `interpret` are the only packages used for handling...
Logs (shown when running in the console)?
Looks like the bug with driver+electron combo, causing renderer (website) to crash. On my side, the only thing I can do about this is to use different Electron version (or...