Skip to content

Reduce bundle size #32

@remorses

Description

@remorses

Currently the bundle size is pretty big because of lodash and rxjs https://bundlephobia.com/result?p=graphql-typed-client@1.7.4

Lodash impact can be reduced simply by changing the import paths, rxjs instead requires the consumer tree shaking the library to reduce bundle size

To enable tree shaking this library should expose a module version of the lib and generate the entry point code with the import syntax instead of require, this way Webpack can tree shake the unused rxjs operators

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions