T
TanStack16mo ago
afraid-scarlet

How to transpile react-query v5 for old browsers using vite

Hi guys, at work we need to support older versions of ios and safari 13. would like to use v5 instead of v4 In the documentation its mentioned that Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from node_modules yourselves. not sure how to do it and any help is appreciated
3 Replies
sunny-green
sunny-green16mo ago
Have you tried if it just works?
sunny-green
sunny-green16mo ago
GitHub
'@tanstack/react-query' does not work in Safari 14 · Issue #6371 · ...
Describe the bug Well, once you open your application that makes use of react-query, a JS error gets immediately thrown, no more other JS is executing on the page from that point, React is basicall...
afraid-scarlet
afraid-scarletOP16mo ago
I made a production build of few examples from the docs with build target as ios13 and it seems to work on ios simulator

Did you find this page helpful?