Skip to content

Enigma.js in not tree-shaking friendly #621

Open
@VincentDauliac

Description

@VincentDauliac

The size of the library in an app bundle could be improved by making it tree-shakable and more modular. The main issue are the JSON schemas because even if we only use a single method of the Engine API, all methods definitions are loaded in the app bundle.
I know it is possible to manually strip down a schema definition file to only keep the necessary, but being able to import only the needed methods would be simpler and safer.

For an enterprise BI app or a Node.js program bundle size may not be such a big concern, but for a public facing app it clearly is a downside.

I don't know if a change in that direction is possible, or if there are existing solutions/tricks addressing this concern. Let me know !

Thanks

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