Skip to content

Give users the option to load a subset of encodings to minimize js bundle size #291

@eekboom

Description

@eekboom

After adding iconv-lite to my small preact app, the minified js bundly grew by about 300KB.

Is there a way to selectively bundle a few encodings (utf-8, iso-8859-*) and fetch the others when needed?
I guess there isn't because the API to encode/decode is synchronous.

In that case it would be a very welcome feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions