Angular 2.ts file does not overwrite .js when saving in Visual Studio 2015. ASP.NET Core project

If I make changes to app.component.ts and save the file, this change will not appear in app.component.js until I manually create the project.

My goal is to have Angular 2 code changes displayed in the browser after saving. I did not have to do the assembly every time.

Here is my tsconfig.json :

{ "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false }, "exclude": [ "node_modules", "typings/main", "typings/main.d.ts" ] } 
+5
source share
2 answers

You are missing "compileOnSave": true . TypeScript documentation says that it only works with Visual Studio 2015 and with the Atom TypeScript plugin. It also requires TypeScript 1,8,4 or higher.

 { "compileOnSave": true, "compilerOptions": { "target": "es5", "module": "system", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "removeComments": false, "noImplicitAny": false }, "exclude": [ "node_modules", "typings/main", "typings/main.d.ts" ] } 
+5
source

on Runner Explorer go to Custom and run tsc:w

-1
source

Source: https://habr.com/ru/post/1246740/