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

Refactor build system: add rollup and babel@7 #199

Closed Fer0x closed 6 years ago

Fer0x commented 6 years ago

First wanted to say that this library is awesome. But there is one little thing which can cause some troubles - es6 modules syntax without transpiling. It's more simple when library can used with zero-configuration. In some cases like with create-react-app you can't change webpack config without ejecting, which is better to avoid.

I propose to add build script with rollup and babel 7. I made three build targets with rollup: umd, commonjs and es modules. So, after that PR even more people can use this library in their projects.

sunnylqm commented 6 years ago

Yeah I was planning to do that in v1 Can you rebase on that? Thanks for your effort!

Fer0x commented 6 years ago

Closing due to https://github.com/sunnylqm/react-native-storage/pull/200