Moved to using native EcmaScript modules in runtime #974
cawa-93
announced in
BREACKING CNANGES
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folks. Finally, it happened and basic support for ESM was added in Electron v28. 🎉
It still has a lot of pitfalls and caveats, but I think it's a step in the right direction. Therefore, starting from 4855085 starter template is fully compiled into pure ES modules. (Previously only frontend used esm).
(If I'm not mistaken, there are no more pieces of commonjs modules in the template at all)
This can also introduce some incompatibilities so I have raised the major version.
If you want to use the previous version of the starter template when the backend was compiled into comon modules you can find it by tag https://github.com/cawa-93/vite-electron-builder/tree/CommonJS
💖 Buy me coffe
Beta Was this translation helpful? Give feedback.
All reactions