I am trying to get my code running on IE11, however, I am having issues with arrow functions. I cannot figure out how to remove them from the build and replace them with function() {}.
It looks like they were removed from my main.js, but in the vendor.js file, the arrow functions still persist. How can I remove them?
I have a browserslist that looks like this:
> 0.5%
last 2 versions
Firefox ESR
not dead
IE 9-11
I also have a tsconfig.json that looks like this:
{
"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"
]
}
}
libto"es5", "es6", "dom"to see if it works.