在編譯 *.ts 檔時,依 tsconfig.json 的參數進行 ( release note )
( includes ASP.NET v4 projects )
在未支援前,還要直接修改專案檔,如下:
現在只要在專案加入 tsconfig.json ,依需求設定參數即可
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
},
"exclude": [
"node_modules",
"typings/main",
"typings/main.d.ts"
]
}
在專案檔 typescript 參數設定頁面就會被設為不可編輯,如下:
這樣真的就方便多了,不用再煩惱啦!


沒有留言:
張貼留言