Steve
Steve

Reputation: 159

Typescript 0.9.1 no option to keep comments set to off

I've just upgraded to 0.9.1 has anyone found that (besides having to find-replace : bool to : boolean) comments are copied over into generated javascript?

I want to have this suppressed but cannot find the option to turn it off in the web essentials options.

Upvotes: 1

Views: 599

Answers (1)

Ryan Cavanaugh
Ryan Cavanaugh

Reputation: 221114

The flag is now called --removeComments in the command-line compiler.

If at all possible, stop using the Web Essentials TypeScript features. These have been extremely problematic in the past (e.g. WE spawning one copy of tsc.exe per .ts file in your solution) and are being removed in future versions of Web Essentials. You can use the TypeScript .targets file and MSBuild task instead now.

Upvotes: 1

Related Questions