Skip to content

Can not use esm version with esbuild, tree shaking not work #314

@hdsuperman

Description

@hdsuperman

Image

I just used the conversions api, and the package size was 2mb, which is very wasteful in a serverless environment, and even exceeds the size of the entire backend code.

Would it be better to use exports instead of main in package.json to support esm modules?
Thanks.

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