Skip to content

Commit

Permalink
chore(ie11): Provide a polyfill feature without fetch (#3055)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev committed Mar 31, 2021
1 parent 0505017 commit 9301783
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions packages/ie11/src/features/IE11WithoutFetch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// CSS Custom Properties
import cssVars from "css-vars-ponyfill/dist/css-vars-ponyfill.esm.js";

// String
import "../thirdparty/es6-string-methods.js";

// Object
import "../thirdparty/Object.entries.js";

// Array
import "../thirdparty/Array.prototype.fill.js";
import "../thirdparty/Array.prototype.find.js";
import "../thirdparty/Array.prototype.findIndex.js";
import "../thirdparty/Array.prototype.includes.js";

// Map
import "../thirdparty/Map.prototype.keys.js";

// Number
import "../thirdparty/Number.isInteger.js";
import "../thirdparty/Number.isNaN.js";
import "../thirdparty/Number.parseFloat.js";
import "../thirdparty/Number.parseInt.js";

// Element
import "../thirdparty/Element.prototype.matches.js";
import "../thirdparty/Element.prototype.closest.js";

// WeakSet
import "../thirdparty/WeakSet.js";

// async - await
import "regenerator-runtime/runtime.js";

// URLSearchParams
import "url-search-params-polyfill/index.js";

// "pseudo mutation observer" fix for nodeValue
import "../patchNodeValue.js";

// Hook with the framework
import "../integrate.js";

window.CSSVarsPonyfill = {
cssVars,
};

0 comments on commit 9301783

Please sign in to comment.