Skip to content

feat: migrate to TypeScript and ESM #1250

Open
@DreamOfIce

Description

@DreamOfIce

TypeScript

I think it might be possible to make this change in v4, and here are some reasons why:

  • Increase readability and lower the threshold for contribution (it's a bit too difficult to contribute now)
  • Can generate declaration files directly instead of maintaining dts manually

I think this change would reduce your maintenance burden in the long run

ESM

Maybe we can write the code in ESM and then use a tool like esbuild to bundle the esm into cjs and iife while compiling the TypeScript

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions