refactor: update code for ESM compatibility#3033
Conversation
|
Thank you for submitting this PR!
Getting other community members to do a review would be great help too on complex PRs (you can ask in the chats/forums). If you are unsure about something, just leave us a comment.
We currently aim to provide initial feedback/triaging on best-effort basis, which may take multiple business. Please keep an eye on any labelling actions, as these will indicate priorities and status of your contribution. |
There was a problem hiding this comment.
@dynst thank you for opening this. unfortunately something broke in this PR and tests no longer pass -- would you have bandwidth to investigate?
if this turns out a laborious effort, we may need to go with more surgical ESM support.
fwiw i had attempted "esm loader" draft in (wip) #3034 to avoid full ESM switch and changing too much, but it does not seem to be working (dynamic imports dont work in main electron thread)
With ESM, all exported values need to have a name,