summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/commons/polyfills.js
blob: fdeb64a764477fef113309190323c76f34c5c583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Browser polyfills

/**
 * 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
 */
import 'formdata-polyfill';

import './polyfills/custom_event';
import './polyfills/element';
import './polyfills/event';
import './polyfills/nodelist';
import './polyfills/request_idle_callback';
import './polyfills/svg';