fireproof-storage / fireproof-alpha

🔥 Cloudless realtime database
https://fireproof.storage
Other
81 stars 4 forks source link

optimize bundle size #107

Open jchris opened 1 year ago

jchris commented 1 year ago

This is with everything -- tree shaking to leave out Sync will be smaller.

Screen Shot 2023-05-18 at 5 45 43 AM
jchris commented 1 year ago

The two versions of bn.js are because https://www.npmjs.com/package/browserify-sign?activeTab=code uses the newer "bn.js": "^5.1.1", and so the easiest thing to check would be if a fork of that package passes its tests with the older version of bn.js that all the other dependencies use. If so we can inject that fork and cut 10% of bundle size