Skip to content

Build for both ESM and CJS #19

Closed
Closed
@farazatarodi

Description

@farazatarodi

Chore

Describe the chore

The npm bundle uses the source ESM files directly. Providing both CJS and ESM builds for maximum compatibility in the vast JS ecosystem would be nice.

Additional context

I suggest two changes:

  • Convert the source files to Typescript (To generate the index.d.ts file automatically).
  • Configure the project to build for both ESM and CJS.

I would be happy to help with a PR.

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