mirror of https://github.com/requarks/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
868 B
38 lines
868 B
7 years ago
|
// =======================================
|
||
|
// Intl polyfill
|
||
|
// =======================================
|
||
|
// Requirement: Safari 9 and below
|
||
|
|
||
|
if (!global.Intl) {
|
||
|
require('intl')
|
||
|
require('intl/locale-data/jsonp/en')
|
||
|
require('intl/locale-data/jsonp/fr')
|
||
|
}
|
||
|
|
||
|
// =======================================
|
||
|
// Promise polyfill
|
||
|
// =======================================
|
||
|
// Requirement: IE 11 and below
|
||
|
|
||
|
if (!window.Promise) {
|
||
|
window.Promise = require('bluebird')
|
||
|
}
|
||
|
|
||
|
// =======================================
|
||
|
// Array.from polyfill
|
||
|
// =======================================
|
||
|
// Requirement: IE 11 and below
|
||
|
|
||
|
if (!Array.from) {
|
||
|
require('./polyfills/array-from')
|
||
|
}
|
||
|
|
||
|
// =======================================
|
||
|
// Fetch polyfill
|
||
|
// =======================================
|
||
|
// Requirement: Safari 9 and below, IE 11 and below
|
||
|
|
||
|
if (!window.fetch) {
|
||
|
require('whatwg-fetch')
|
||
|
}
|