I have configured my project in order to avoid the ES5 bundle that the build is generating. For that purpose, I have configured the .browserlists and tsconfig.json files as follow:
.browserslist file
last 1 Chrome version
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
"typeRoots": ["node_modules/@types"],
"types": ["jest", "node"],
"lib": ["es2018", "dom", "es2020.string"],
"skipLibCheck": true
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableIvy": true
}
}
But it is still generating the ES5 bundle...