Skip to content

Invalid mjs bundle: contextBridge shouldn't be imported in main.mjs #180

@ylc395

Description

@ylc395
image

exposeElectronTRPC import contextBridge, which is not available in main process. This cause a fatal error when users import electron-trpc/main.mjs in main process:

image

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