NativeScript / worker-loader

36 stars 20 forks source link

fix: worker compilation should not be async #54

Closed rosen-vladimirov closed 4 years ago

rosen-vladimirov commented 4 years ago

In some cases, when using the AOT of Angular applications, multiple worker compilations may happen at the same time. As they share the same Angular Compiler instance, the compilation itself may fail. To resolve this, ensure there's only one compilation of a worker in a specified moment - start the next one after the current one finishes.

Fixes issue https://github.com/NativeScript/nativescript-cli/issues/5247