The child module houses the development to be deployed, so it should be understood that the 2 Angular projects should be configured independently.
I have followed the steps to support internet explorer, but I only get the error of
SCRIPT1002: Syntax error vendor.js (95940,1)
The files and the modified ones made (same to child and parent):
-- Go to tsconfig.json and use target: "es5" instead of "target": "es2015".
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./src/",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
},
"include": [
"**/*.ts",
"./node_modules/child-module",
]
}
-- Go to polyfills and uncomment lines and npm install --save 'classlist.js'
and 'web-animations-js'
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es/symbol';
import 'core-js/es/object';
import 'core-js/es/function';
import 'core-js/es/parse-int';
import 'core-js/es/parse-float';
import 'core-js/es/number';
import 'core-js/es/math';
import 'core-js/es/string';
import 'core-js/es/date';
import 'core-js/es/array';
import 'core-js/es/regexp';
import 'core-js/es/map';
import 'core-js/es/weak-map';
import 'core-js/es/set';
import 'classlist.js';
import 'core-js/es/reflect';
import 'web-animations-js';
import 'zone.js/dist/zone';
import 'whatwg-fetch';
In the package they are installed as "classlist.js": "^1.1.20150312"
; "mdn-polyfills": "^5.20.0"
-- And finally, uncomment the line for IE 9-11 support of browserslist file.
> 0.5%
last 2 versions
Firefox ESR
not dead
IE 9-11