Closed RishitKedia closed 5 years ago
Hey @RishitKedia, would happily accept a PR for babel support... I also realize this is over a year late. The library has recently been refactored to utilize typescript for compilation, not sure if that has an effect.
Better late than never! 😄 I'm not working on that project of mine anymore, though. It's been over a year! 😋
I think TypeScript should have it covered now. So, I'm closing this.
Also, feel free to close #2 depending on whether you want to implement it or not. 🙂
Hey, Justin! 👋
This is super interesting, and I'd like to try this for my app.
I'm not using Flow, and when I import
apollo-offline
in myWebpack
project, I get the following error:I guess you have to strip the Flow types while compiling for non-Flow users.
Thanks! 🙃
Edit
As it turns out, it wasn't just Flow that was causing issues.
apollo-offline
is also not being transpiled to ES5 by using something likeBabel
. I've managed to get rid of the errors withBabel
on my end, but you may already know that it's common practice to useBabel
to transpile to ES5, and also strip the Flow types, so that anyone and everyone can useapollo-offline
. So, it'll be nice ifBabel
is used here. 🙏For more information, for example, see https://javascriptplayground.com/npm-flowjs-javascript/.