Skip to content

fix: worker compilation should not be async #54

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

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

rosen-vladimirov
Copy link
Contributor

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 NativeScript/nativescript-cli#5247

@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/sync-worker-pitch branch from 8f2c842 to 3a0b216 Compare February 20, 2020 06:49
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.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/sync-worker-pitch branch from 7515a5a to 4b07012 Compare February 20, 2020 07:56
@rosen-vladimirov rosen-vladimirov merged commit b7d4797 into master Feb 20, 2020
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/sync-worker-pitch branch February 20, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants