角度tsconfig将目标从ES6更改为ES5的含义?

问题描述

所以我当前的tsconfig文件如下所示

{
  "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:将我的项目tsconfig目标从ES6更改为ES5有什么影响?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)