If I add "type": "module" to package.json on this project (plus minor import adjustments), my issue above gets fixed and VS Code doesn't complain anymore. Any reason both vite-plugin-electron and vite-plugin-electron-renderer don't include "type": "module" now Vite/Electron require it?
When I switched to Electron 28+, I followed the instructions here and added
"type": "module"
to package.json on my project.Since then, my vite.config.ts is erroneous on VS Code due to the electron function call within the configuration:
When I build this project, I get a warning:
If I add
"type": "module"
to package.json on this project (plus minor import adjustments), my issue above gets fixed and VS Code doesn't complain anymore. Any reason both vite-plugin-electron and vite-plugin-electron-renderer don't include"type": "module"
now Vite/Electron require it?