debian-mirror-gitlab/app/assets/javascripts/commons/polyfills.js

28 lines
785 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
// Browser polyfills
2020-04-08 14:13:33 +05:30
/**
* Polyfill: fetch
* @what https://fetch.spec.whatwg.org/
* @why Because Apollo GraphQL client relies on fetch
* @browsers Internet Explorer 11
* @see https://caniuse.com/#feat=fetch
*/
import 'unfetch/polyfill/index';
/**
* Polyfill: FormData APIs
* @what delete(), get(), getAll(), has(), set(), entries(), keys(), values(),
* and support for for...of
* @why Because Apollo GraphQL client relies on fetch
* @browsers Internet Explorer 11, Edge < 18
* @see https://caniuse.com/#feat=mdn-api_formdata and subfeatures
*/
2018-11-18 11:00:15 +05:30
import 'formdata-polyfill';
2020-04-08 14:13:33 +05:30
2017-08-17 22:00:37 +05:30
import './polyfills/custom_event';
import './polyfills/element';
2018-03-17 18:26:18 +05:30
import './polyfills/event';
import './polyfills/nodelist';
2018-11-18 11:00:15 +05:30
import './polyfills/request_idle_callback';
2018-12-05 23:21:45 +05:30
import './polyfills/svg';