Skip to content
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

fix(plugin-webpack): preload race condition #3353

Merged
merged 5 commits into from
Sep 19, 2023
Merged

Conversation

georgexu99
Copy link
Contributor

fixes: #3343

Due to webpack preload refactoring, a bug mainly affecting windows resulted in users temporarily seeing an error as the window attempted to display preload contents before webpack was done compiling the preload. This PR introduces logic to wait for preload compilation to finish first.

@georgexu99 georgexu99 requested a review from a team as a code owner September 14, 2023 23:47
@georgexu99 georgexu99 marked this pull request as draft September 14, 2023 23:48
packages/plugin/webpack/src/WebpackPlugin.ts Outdated Show resolved Hide resolved
packages/plugin/webpack/src/WebpackPlugin.ts Outdated Show resolved Hide resolved
@erikian
Copy link
Member

erikian commented Sep 15, 2023

Whoops, didn't notice it was a draft 😅

@erickzhao erickzhao changed the title fix(webpack): preload race condition fix(plugin-webpack): preload race condition Sep 18, 2023
@georgexu99 georgexu99 marked this pull request as ready for review September 19, 2023 18:11
Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two non-blocking comments, but otherwise looks good

packages/plugin/webpack/src/WebpackPlugin.ts Outdated Show resolved Hide resolved
packages/plugin/webpack/src/WebpackPlugin.ts Outdated Show resolved Hide resolved
@georgexu99 georgexu99 merged commit d7d926d into main Sep 19, 2023
7 checks passed
@georgexu99 georgexu99 deleted the webpack-race-condition branch September 19, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to load preload script after upgrade electron-forge@6.4.2
3 participants