Skip to content

Dist size too large #23

@Ricardo-Marques

Description

We have build errors when a particular file in our dis is too large (>244kb, default webpack behavior)

When running webpack analyzer through our code to find out why it was failing, it seems squatch is the only offender.

image

It weighs in at 552.8KB.

I tried some basic tree shaking, by changing

import * as squatch from '@saasquatch/squatch-js'

to

import {init, widgets, api} from '@saasquatch/squatch-js'

But it seems like squatch is not tree shakable. This is a good article on that subject.

It would be nice to have a way of importing just the methods I need to save some precious KB.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions