Angular 角度(tsconfig)将目标从ES6更改为ES5意味着什么?
因此,我当前的tsconfig文件如下所示Angular 角度(tsconfig)将目标从ES6更改为ES5意味着什么?,angular,typescript,angular8,tsconfig,Angular,Typescript,Angular8,Tsconfig,因此,我当前的tsconfig文件如下所示 { "compileOnSave": false, "compilerOptions": { "downlevelIteration": true, "importHelpers": true, "outDir": "./dist/out-tsc", "sourceMap":
{
"compileOnSave": false,
"compilerOptions": {
"downlevelIteration": true,
"importHelpers": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
],
"module": "esnext",
"baseUrl": "./"
}
}
无论是本地还是构建/部署后,一切都运行良好
但是,我担心将来的更改可能会破坏代码,因为更改了目标。最初我更改了目标,因为只有少数软件包受ES5支持,更改目标解决了这个问题
TLDR:将我的项目Tconfig目标从ES6更改为ES5会产生什么影响