fix typescript compiler emit output#1382
fix typescript compiler emit output#1382HerringtonDarkholme wants to merge 1 commit intovim-syntastic:masterfrom HerringtonDarkholme:fix-typescript-emit
Conversation
Except this option is new in tsc 1.5.0-alpha, so your patch is missing at least a version check. Other than lack of conceptual purity, is there any downside to mixing
It fixes the reported behaviour, not the root of the problem. The root of the problem, as I pointed out, is in libuv, and it also affects other syntastic checkers. |
|
Or I will add a version check, with TS1.5 Using |
|
I don't think there is an optimal solution for now. TS Vim user should find their own way to get rid of this. |
|
|
|
Please see fe43637. |
Syntastic will emit js file when checking TypeScript file. This is not a desirable behavior.
According to TypeScript module specs,
--outflags should not be used with external module. So--module commonjsand--out /dev/nullare two mutually exclusiv arguments.This is not a problem with TypeScript compiler, because module loader specs require all files are separated and imported by loader. So
--outputis not a valid option for checking.However, tsc does provide a more straightforward option
--noEmit, which is a more sensible alternative.This also fixes #1155