I am facing a challenge in running my code on IE11 due to issues with arrow functions. I need to find a way to eliminate them from the build and replace them with function() {}
.
Even though I have removed them from main.js
, they are still present in the vendor.js
file. How can I get rid of them completely?
My browserslist configuration is as follows:
> 0.5%
last 2 versions
Firefox ESR
not dead
IE 9-11
Additionally, here is the content of my tsconfig.json
:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"downlevelIteration": true,
"importHelpers": true,
"outDir": "../path/to/folder",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}