Skip to content

Add ESM support #31

@BlackGlory

Description

@BlackGlory

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions