-
Notifications
You must be signed in to change notification settings - Fork 750
Open
Labels
Description
With ESM support coming to Electron 28, it would be nice to have support for main.mjs in Fiddle when that release happens. Rough sketch of what I think is necessary to support it.
- Add support for
.mjsas a file extension - Support either
main.jsormain.mjsfor main process code - Smooth out the UX
- Don't allow both
main.jsandmain.mjsto exist in a Fiddle - Consider whichever is present to be the required file
- Show a warning to the user if they're trying to use
main.mjsin a version before 28
- Don't allow both
Bonus points UX: Add a "Convert to ESM" button to the context menu when you right click main.js
Reactions are currently unavailable