Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use external modules for the TypeScript Compiler #309

Closed
basarat opened this issue Jul 30, 2014 · 1 comment
Closed

Use external modules for the TypeScript Compiler #309

basarat opened this issue Jul 30, 2014 · 1 comment
Labels
By Design Deprecated - use "Working as Intended" or "Design Limitation" instead

Comments

@basarat
Copy link
Contributor

basarat commented Jul 30, 2014

Would help pick and choose parts of the compiler. E.g. the createSourceFile function in parser.ts is pretty useful on its own. I'd rather just import parser = require('/tsc/parser') and let the module system do its resolution of all that I am using.

Probably only possible once we have multi external file to single output: #17

@basarat basarat changed the title Use external modules for the TypeScript project Use external modules for the TypeScript Compiler Jul 30, 2014
@RyanCavanaugh
Copy link
Member

The compiler needs to run in as many environments as possible, including ones that don't have external module loaders (e.g. tsc).

It's much easier to create an external module out of loose code than vice versa.

@basarat basarat mentioned this issue Aug 7, 2014
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
By Design Deprecated - use "Working as Intended" or "Design Limitation" instead
Projects
None yet
Development

No branches or pull requests

2 participants