Forked type checker is disabled for AOT builds
Opened this issue · 0 comments
d3lm commented
For this library to work with AOT as well, we currently cannot run the type checker in a forked process. This has some performance drawbacks for somewhat large applications because TypeScript is synchronous and running the type checker in the main thread will slow down the compilation.
In this issue we want to investigate, share findings and discuss how we can solve this issue so that we can safely run the type checker again in a forked process.
When setting forkTypeChecker
to true
it works for the initial build but when we modify some resources and the build is re-triggered, there are some type errors thrown by the type checker. If we modify something a second time, the forked type checker stops unexpectedly.