Webstorm使用
<reference path>
TS的指令包括,就像编译器所做的那样:)这是预期的且完全有效的行为。并排除中的引用文件
tsconfig.json
实际上没有帮助,因为从包含的文件显式引用的文件也包含在内。看见
http://www.typescriptlang.org/docs/handbook/tsconfig-json.html
:
Any files that are referenced by files included via the "files" or "include" properties are also included. Similarly, if a file B.ts is referenced by another file A.ts, then B.ts cannot be excluded unless the referencing file A.ts is also specified in the "exclude" list.