react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
23 lines (20 loc) • 762 B
JavaScript
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.promise.js";
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.string.iterator.js";
import "core-js/modules/web.dom-collections.iterator.js";
import global from 'global';
var globalWindow = global.window;
export var importPolyfills = function importPolyfills() {
var polyfills = [];
if (!globalWindow.fetch) {
// manually patch window.fetch;
// see issue: <https://github.com/developit/unfetch/issues/101#issuecomment-454451035>
var patch = function patch(_ref) {
var fetch = _ref.default;
globalWindow.fetch = fetch;
};
polyfills.push(import('unfetch/dist/unfetch').then(patch));
}
return Promise.all(polyfills);
};