core icon indicating copy to clipboard operation
core copied to clipboard

Fix DCE for TypeScript

Open Jand42 opened this issue 8 years ago • 0 comments

TypeScript introduces more things to write in output (interface and plain object typings for example), code dependency graph must be updated for it so that minimal output for a project can be produced. Todos:

  • Classes/F# types without a prototype still need a TypeNode and be tracked in the graph so interface definition for them can be tracked.
  • ByRef interface definition needs to be added (it is not an IL type, so not a proxy which would have graph support).
  • Interface methods which are not needed should be removed from output.
  • Union singleton cases need a fix, packager has to print them iff the MethodNode for them is in the DCE-d graph. Optionally remove all kinds of unused union cases.

Jand42 avatar Nov 02 '17 12:11 Jand42