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.

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.
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.
It weighs in at 552.8KB.
I tried some basic tree shaking, by changing
to
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.