Skip to content

Publish Library as ES Module #2363

@RndUsername

Description

@RndUsername

Is your feature request related to a problem? Please describe.

Consuming the library in modern web frameworks is problematic. For example using it in Angular causes the build optimization to bail out.

Describe the solution you'd like

Correct me if I am wrong but you already use ECMAScript style imports and exports. The problem is, that your only output inside the RollUp config is umd. It should be as simple as adding another output with the es output format and specifying it in package.json's exports property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds more informationRequires additional information to be actionable.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions