David Paulsson
10/24/2022, 11:03 AMJason Bosco
10/24/2022, 2:59 PMDavid Paulsson
10/24/2022, 3:26 PMJason Bosco
10/24/2022, 4:00 PMJason Bosco
10/24/2022, 9:28 PMwebpack-bundle-analyzer
is analyzing the full contents of your node_modules folder, which by definition doesn’t use tree shaking.
Could you try turning on tree shaking in your webpack config, and then analyze the JS bundle file produced by webpack?
Separately, in your graph above, you want to include the contents of both algoliasearch-helper and instantsearch for comparison.
I also see that you already have axios installed, so I’m wondering if there’s some webpack config you could turn that just uses that axios instead of the one that’s mentioned in the typesense-js as a depenedency. That should reduce bundle size even further