I have an existing Angular app that works a charm in Chrome but fails on (obviously) Internet Explorer. What's happening is this:
Several of the NPM modules I install come with different distributions. So for example, the folder structure under kendo-angular-charts looks like this:
- dist
|- cdn
|- es
|- es2015
|- npm
|- systemjs
When the site breaks in IE, it's because of the following declaration in es2015\common\configuration.service.js:
export class Change {
constructor(key, value) {
this.key = key;
this.value = value;
}
}
It breaks (invalid syntax error) because ES2015 classes are not supported in Internet Explorer. But there is also a perfectly valid ES5 version of the file in the es folder.
So how do I use that instead?
I have checked angular.json and package.json for options that seem related, but couldn't find anything.