-
-
Notifications
You must be signed in to change notification settings - Fork 590
Open
Description
Pre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Problem description
When I wanted to migrate to ESM according to the latest version of electron-store, I found that forge.config.ts did not support ESM.
Proposed solution
Support ESM in forge.config
Alternatives considered
- Wait for official support in future electron-forge versions.
- Use a custom build process outside of electron-forge to support ESM.
- Revert to CommonJS modules for the time being
Additional information
ESM support is crucial for our project as we aim to use modern JavaScript features and improve code maintainability. The ability to use 'import' statements directly would significantly simplify our development process and allow us to better align with current JavaScript best practices. We've already migrated most of our codebase to use ESM syntax, and electron-forge's lack of support is the main blocker for our complete transition
AugustSaintFreytag, rtritto, romansp, peace317, k-128 and 4 more