我對Typescript頗爲陌生。 tsconfig.json中的Target是什麼意思?Typescript - tsconfig中的目標是什麼?
{
"compilerOptions":
{
"sourceMap": true,
"target": "es5",
"module": "commonjs",
"jsx": "react",
"moduleResolution": "classic",
"lib": [ "es2015", "dom", "es2017" ]
}
}
請下次再嘗試使用搜索引擎。 https://www.typescriptlang.org/docs/handbook/compiler-options.html –
@SebastianSebald我做了搜索,並得到該網頁,但不明白, 這是否意味着在編寫它時檢查代碼是在es5格式和在transpiling es5是目標? –
您在* TypeScript *中編寫代碼,目標定義編譯目標。 –