-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
ts-loader project references "build" support #851
Comments
@johnnyreilly yes we aim to make api for solutionBuilder but it would take a while since we are still working on fixing nitty gritties of project references. |
Thanks so much for that @sheetalkamat! |
Hey @sheetalkamat, any update on this? I realize you probably can't promise a timeline, but I just wanted to make sure we still have hope to keep this issue alive. 🙂 Thanks! |
microsoft/TypeScript#28640 tracks this and it would be a while before API is public as we work through the perf issues and shape it accordingly. |
TypeScript 3.3 supports incremental build with composite projects |
Is there any work in progress on this or the issue was put on hold? |
I'm not working on it... It's possible @andrewbranch may be but I don't know |
This is still the current status: #851 (comment) It should be something that's possible in the future, just not quite yet. Thanks for your patience, everyone 🌟 |
It looks like TS just added support |
Anything new here ? |
I kinda need this. If nobody is looking at implementing i'll take a stab at it. |
YES PLEASE! It's a long awaited feature ))) TypeScript 3.6 has API support for this: https://devblogs.microsoft.com/typescript/announcing-typescript-3-6/#apis-to-support-build-and-incremental #913 this is a similar issue |
#935 should fix this. |
ts-loader
has partial support for project references in that it will load dependent composite projects that are already built, but will not currently build/rebuild those upstream projects. We don’t want to keep it that way; this issue has been opened to track ts-loader triggering the building/rebuilding of upstream projects.Copied from #815 (comment) by @andrewbranch:
Small status update: I spent an hour or so this morning exploring the current state of the tsbuild API to see if it contains what we need for ts-loader to build/watch upstream projects. It mostly does, but currently the API isn't finalized and the whole thing is marked internal: https://github.com/Microsoft/TypeScript/blob/85a3475df87b9c10240570f32090970262c99b54/src/compiler/tsbuild.ts#L1-L2
I think ts-loader’s full support for project references will have to wait until that’s finalized, lest we get broken by minor or patch TypeScript releases.
@sheetalkamat, two things:
I realize all this is still in flux, so I just wanted to give you an idea of the functionality we’ll need here, since it’s not the typical case of running a solution build programmatically. At the moment, it feels a little kludgy to have to create two SolutionBuilders. Might there be a way in the future to build all projects with a filter, or simply to build all dependencies of a project? Thanks for all your work on this!
cc @RyanCavanaugh @rbuckton
The text was updated successfully, but these errors were encountered: