sunnylqm / react-native-storage

local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
MIT License
3.02k stars 268 forks source link

Bundle size doubled in 1.0.1? #258

Open Dilan1020 opened 3 years ago

Dilan1020 commented 3 years ago

Hello,

According to bundlephobia, the package almost doubled in size from 1.0.0 to 1.0.1. In the changelog it just looks like two bug fixes.

Just curious if you know what the reason is for this. Thanks.

sunnylqm commented 3 years ago

For best compatibility we have to inline the babel helpers which increased the bundle size, but it won't affect react-native bundle. https://github.com/sunnylqm/react-native-storage/commit/4020aebcbd8392d46ad2a04f0b275816cc9e68dc#diff-09c56b2bf95de2a608a36afef3b6893146a959d6739be0a154dc9c9f02d80f24L27