Open alexblack opened 1 year ago
Hmm that tslib.js, weighing in at 10kb 3x seems suspicious
@alexblack could it be that your project dependencies contain both tslib 1.x and 2.x, and performs hoisting for the 1.x version thus installing 2.x multiple times ?
I'm trying out migrating from
amplitude-js
toamplitude-browser
, hoping that we'd achieve a smaller bundle size through tree shaking (we're using it in Remix which uses esbuild)However, our bundle size has gone up by ~13kb, despite our careful import usage like
import { track } from '@amplitude/analytics-browser'
Before:
After: