Open minht11 opened 2 years ago
Thanks!
Based on Dexie Bundle phobia it's minified bundle size is 83KB, GZIPed 26KB. Dexie is a great library and has a lot of features, but its bundle size is on the high side and while it might be acceptable for some apps, for others it might not, especially if they have bundle size budgets.
1582 Not transpiling to ES5 wouldn't require much effort, but would be moderate win.
Bundlephobia seems to only counts the legacy es5 build. The modern version is slightly lower - 80KB for dist/modern/dexie.min.mjs
and 25 KB for the gzipped version.
1584 Would take a lot of effort, but would have even bigger impact. Those are just two most obvious ways to reduce library size I can think of, without learning deep how Dexie works and is structured internally.
Thanks for bringing this up. Let's see what's possible to do i dexie 4 where we have the possibility to break backward compatibility.
Based on Dexie Bundle phobia it's minified bundle size is 83KB, GZIPed 26KB. Dexie is a great library and has a lot of features, but its bundle size is on the high side and while it might be acceptable for some apps, for others it might not, especially if they have bundle size budgets.
https://github.com/dexie/Dexie.js/issues/1582 Not transpiling to ES5 wouldn't require much effort, but would be moderate win. https://github.com/dexie/Dexie.js/issues/1584 Would take a lot of effort, but would have even bigger impact. Those are just two most obvious ways to reduce library size I can think of, without learning deep how Dexie works and is structured internally.