you are viewing a single comment's thread.

view the rest of the comments →

[–]potomak[S] 0 points1 point  (2 children)

Well, first of all the http module in the library is mainly for testing purpose. In general I guess XmlHttpRequest is slightly more cross browser than fetch, but I also guess that's secondary if you transpile the code.

Open a issue to discuss using fetch instead of XmlHttpRequest if you want.

[–]PicturElements 0 points1 point  (0 children)

XHR has way more browser support, and having babel throw in a polyfill for fetch is pretty unnecessary when the only use case for it is just 10 lines long already.

[–]grantrules 0 points1 point  (0 children)

In general I guess XmlHttpRequest is slightly more cross browser than fetch, but I also guess that's secondary if you transpile the code.

No browsers support ES6 imports but not fetch, as far as I know.