compatibility.js 610 B

1234567891011121314151617181920212223242526
  1. // =======================================
  2. // Promise polyfill
  3. // =======================================
  4. // Requirement: IE 11 and below
  5. if (!window.Promise) {
  6. window.Promise = require('bluebird')
  7. }
  8. // =======================================
  9. // Array.from polyfill
  10. // =======================================
  11. // Requirement: IE 11 and below
  12. if (!Array.from) {
  13. require('./polyfills/array-from')
  14. }
  15. // =======================================
  16. // Fetch polyfill
  17. // =======================================
  18. // Requirement: Safari 9 and below, IE 11 and below
  19. if (!window.fetch) {
  20. require('whatwg-fetch')
  21. }