Is it possible to configure this to use exclusively modules and no commonjs? #67
-
I can figure out setting |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
What version of Electron are you on? ESM support was added in Electron 28, this template is still on Electron 27. You should be able to update this version with ease. |
Beta Was this translation helpful? Give feedback.
-
I was just using the template as is, so Electron 27. I had no awareness that modules support is new, let alone incomplete, in Electron. Thanks for clarifying this! |
Beta Was this translation helpful? Give feedback.
What version of Electron are you on?
ESM support was added in Electron 28, this template is still on Electron 27. You should be able to update this version with ease.
There are some things to keep in mind though, Electron has a documentation page regarding ESM support: https://www.electronjs.org/docs/latest/tutorial/esm