Even though Ionic has made it clear that they will not be supporting IE11, I am still required by my work to find a workaround if possible!
The problem I'm encountering is that the main.js file generated by Ionic in the development environment is causing an error in IE11 because it uses template literals.
To address this issue, I have created a polyfills.ts file with the following contents:
polyfills.ts
import 'core-js/es6/string';
import 'core-js/fn/string/raw';
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
import 'core-js/es6/reflect';
import 'core-js/es7/reflect';
import 'classlist.js';
import 'web-animations-js';
import 'hammerjs';
Then, in my main.ts file, I have the following code snippet:
import './polyfills'
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import {enableProdMode} from '@angular/core';
import { AppModule } from './app.module';
enableProdMode();
platformBrowserDynamic().bootstrapModule(AppModule);
Despite these efforts, the issue persists. Could it be that I am missing a module from core-js that would resolve this problem?
I would greatly appreciate any advice or suggestions.
Thank you!