Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
This repository was archived by the owner on May 15, 2025. It is now read-only.

marked.Renderer is not a constructor when using pikapkg/web #100

@jarrodek

Description

@jarrodek

Description

This may be similar to #99. I'm using pikapkg/web (as suggested in Polymer's project issue) to enable native imports which are required for Electron app. After few days I made my project to work but now I see bunch of errors when using marked element. So the Pika web transforms marked library and marked object has only default property and this property has package export.
Now I am not sure how to deal with this issue as Pica does not have "exclude" option to not transform it as ES module. Maybe we could use some type check when constructing the instance of marked renderer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions