There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?

6

Closed

modularize compiler and language services

description

Currently, the only way to reuse parts of the typescript project is by using 'reference path' includes. In fact, the whole project source ignores the language features of external modules, import and export (possibly because the source predates the availability
of these features?).

This prevents use of a module system in client code and leads to ridiculous hacks like the one used to get 'typescriptServices.js' into 'harness.ts'. Another example are editor and IDE clients of the language services.

For my own tool [discussion:405174], I have to precompile my code, putting generated .js into the repo, because I cannot just import the services from the npm module (others have the same issue:
http://typescript.codeplex.com/workitem/97).

file attachments

As part of our move to GitHub, we're closing our CodePlex suggestions and asking that people move them to the GitHub issue tracker for further discussion. Some feature requests may already be active on GitHub, so please make sure to look for an existing
issue before filing a new one.