-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat(ts-config-webpack-plugin): Increase incremental type checking perrformance with useTypescriptIncrementalApi
#43
base: master
Are you sure you want to change the base?
Conversation
@0xorial We tried to activate the However we run into the following error:
Could you please give us a hint were we could start debugging? |
As I see, before the config was loaded here. With 'useTypescriptIncrementalApi' it is loaded inside typescript code, through this function. I would compare if there is a difference between how those 2 work... |
Thanks @0xorial that moved me to the correct point however it is entirely unrelated to your code change. It's just that The errror is invoked here:
Which is not the case for However |
4811b7e
to
32c98e4
Compare
Just to publicise what @jantimon and I discussed in Slack earlier: I'm planning to move the |
32c98e4
to
e4a6ed8
Compare
@jantimon - I'm pretty sure that with the above PR this now works with node 6 once more. Caveat - you can't build it with node 6 because of webpack 5 reasons. I don't think that's an issue though. Would you be able to test that this works with node 6? Pretty sure it should. If so then I'll merge and push out a new version. |
Actually, there didn't seem any reason not to ship... So I shipped: https://github.com/Realytics/fork-ts-checker-webpack-plugin/releases/tag/v1.0.0-alpha.4 Test away! |
1faf6d3
to
e315e97
Compare
Node 6 support is fixed with https://github.com/Realytics/fork-ts-checker-webpack-plugin/releases/tag/v1.0.0-alpha.4 - great work @johnnyreilly Unfortunately using https://travis-ci.org/namics/webpack-config-plugins/jobs/482000488 The same build with |
…rformance with `useTypescriptIncrementalApi` fixes #39
fbbed44
to
149c1b4
Compare
149c1b4
to
23883c4
Compare
@0xorial do you have any idea how we could debug this? |
So it looks like it works fine on windows and Mac but has problems on Linux with large projects |
@jantimon not right away, but I will have a look... |
One idea that I have following. In non-incremental version chokidar is used to watch files inside the worker process. In incremental version we use TypeScripts' own implementation. Perhaps there is a difference regarding how those 2 behave when getting signal to exit. In that case it could be that build is freezing because our worker process does not stop. I am not sure if I can check that quickly though... Any thoughts? |
Thanks for the feedback @johnnyreilly @0xorial ! I guess the reason is really the file watcher. |
For details please see #39