I'm very new to typescript and am trying it out in the latest Visual Studio 2015 RC.
At the moment it compiles the typescript file automatically and creates the underlying js file (nicely underneath the .ts file when you expand it) when I save the ts file. However, there is no sourcemap file, so I never hit any breakpoints in the typescript in visual studio when debugging (regardless of using IE or Chrome canary).
Is there a way to enable it so it will generate the sourcemap files on save? From searching around it seems a lot of the compiler options that used to be in web essentials that have either moved or are not available (yet?):
I've found an alternative if you go to add a new file to your project, there is a typescript configuration file option. So if you add a 'tsconfig.json' you get the same settings:
{
"compilerOptions": {
"module": "amd",
"noEmitOnError": true,
"noImplicitAny": false,
"removeComments": false,
"sourceMap": true,
"target": "es5"
}
}
I guess this is better as it would potentially allow multiple configurations for different typescript apps in different folders. For my project I've just placed it in the root to apply globally.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With