-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Expected Behavior
the UA-parser package should be only imported once
Current Behavior
somewhere in the rollup config it imports UA-parser twice
Possible Solution
see: https://github.com/StefKors/amplitude-client-vite
I've setup a basic repo to show what would be possible and highlight bundle issues in Amplitude Javascript. Reducing bundle size from 296 kb
to 122.88 kB
.
Using detect-ua instead of @amplitude/ua-parser-js
will further reduce the bundle size to 96.37 kB
Steps to Reproduce
- configure rollup bundle visualizer
- run
npm run build
Environment
- JS SDK Version:
- Installation Method:
- Browser and Version:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working