Typescript: Dependency Map?

Created on 8 Jun 2015  路  3Comments  路  Source: microsoft/TypeScript

Hi,

Is there a "Dependency Map" export option in the ts compiler. I am working on a fairly large UI framework with many classes and modules. Applications using this framework are not going to use all the classes all the time. Next to that, many of these classes need their corresponding css files, for example: "My.Button" class needs "My.Button.css". It would be very useful to see which classes are "actually used" in the project so we can bundle only those classes/files when building the final .js file.

Any thoughts?

Regards,
Gevik.

Duplicate Question

Most helpful comment

All 3 comments

The compiler does not provide this as a feature out-of-the box. there are tools that can do that for you. for instance @basarat's https://atom.io/packages/atom-typescript has a dependency graph view.

You probably want to +1 this issue https://github.com/Microsoft/TypeScript/issues/1479

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Antony-Jones picture Antony-Jones  路  3Comments

uber5001 picture uber5001  路  3Comments

DanielRosenwasser picture DanielRosenwasser  路  3Comments

dlaberge picture dlaberge  路  3Comments

Zlatkovsky picture Zlatkovsky  路  3Comments