From 1c115db6f900c264a57084ba95ee7d02dadbd32f Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Lord Date: Tue, 8 Jun 2021 15:23:55 -0400 Subject: [PATCH 1/2] chore(polyfills): Error catching by textdecoder() was undefined on IE --- package.json | 1 + src/polyfills.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index c2dbf6a8f..e4025b1f3 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "bowser": "^2.9.0", "classlist.js": "^1.1.20150312", "core-js": "^3.6.5", + "fast-text-encoding": "^1.0.3", "file-saver": "^2.0.2", "hammerjs": "^2.0.8", "html2canvas": "^1.0.0-rc.5", diff --git a/src/polyfills.ts b/src/polyfills.ts index 53144dce5..5f169f6e6 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -27,6 +27,9 @@ import 'core-js/es/array/flat-map'; /** IE10 and IE11 requires the following for NgClass support on SVG elements */ import 'classlist.js'; // Run `npm install --save classlist.js`. +/** IE do not support TextDecoder() */ +import 'fast-text-encoding' + /** IE10 and IE11 requires the following for string normalization */ import 'unorm/lib/unorm.js'; From 26ebf7b92b9cd48509c7ccf7e42a4569d2c4c410 Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Lord Date: Tue, 8 Jun 2021 16:31:47 -0400 Subject: [PATCH 2/2] lint --- src/polyfills.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polyfills.ts b/src/polyfills.ts index 5f169f6e6..80dab8420 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -28,7 +28,7 @@ import 'core-js/es/array/flat-map'; import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE do not support TextDecoder() */ -import 'fast-text-encoding' +import 'fast-text-encoding'; /** IE10 and IE11 requires the following for string normalization */ import 'unorm/lib/unorm.js';