Electron 28 already has ESM support, but the library doesn't work in ESM yet.
Here's my current solution based on making a fake NodeModule
:
const module = {
filename: fileURLToPath(import.meta.url)
, children: []
}
Due to the lack of module.children
, full ESM support may not be possible.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too