From d2ce1bd928ed53db80314fefd5a9e99f8a556e8f Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sun, 12 May 2019 23:11:41 +0300 Subject: [PATCH] fix: IE11 add missing fetch and URL polyfills fixes #875 --- package.json | 2 ++ src/polyfills.ts | 3 +++ yarn.lock | 10 ++++++++++ 3 files changed, 15 insertions(+) diff --git a/package.json b/package.json index 8300cc54a8..e62a2e0d85 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,8 @@ "tslint": "^5.13.1", "tslint-react": "^3.4.0", "typescript": "^3.3.3333", + "unfetch": "^4.1.0", + "url-polyfill": "^1.1.5", "webpack": "^4.29.6", "webpack-cli": "^3.2.3", "webpack-dev-server": "^3.2.1", diff --git a/src/polyfills.ts b/src/polyfills.ts index eceb145e08..318867ebf3 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -6,3 +6,6 @@ import 'core-js/fn/string/starts-with'; import 'core-js/es6/map'; import 'core-js/es6/symbol'; + +import 'unfetch/polyfill/index'; +import 'url-polyfill'; diff --git a/yarn.lock b/yarn.lock index cb0b951dca..86c97fd51e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9599,6 +9599,11 @@ uglify-js@3.4.x, uglify-js@^3.1.4: commander "~2.17.1" source-map "~0.6.1" +unfetch@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.1.0.tgz#6ec2dd0de887e58a4dee83a050ded80ffc4137db" + integrity sha512-crP/n3eAPUJxZXM9T80/yv0YhkTEx2K1D3h7D1AJM6fzsWZrxdyRuLN0JH/dkZh1LNH8LxCnBzoPFCPbb2iGpg== + unicode-canonical-property-names-ecmascript@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" @@ -9699,6 +9704,11 @@ url-parse@^1.4.3: querystringify "^2.0.0" requires-port "^1.0.0" +url-polyfill@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.5.tgz#bec79b72b5407dba6d8cced2e32e4ab273aa9fb1" + integrity sha512-9XjIJ6nwrU+nGd8t90Ze0Zs7t8A+SU0gqsqPttj6j3zAVe5q0HFcuv37nDBdVSPpi4aTHTfbUF/i+ZVD+o2EbA== + url@0.11.0, url@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"