Skip to content

Fix bug that causes crash/white screen on Windows, add checks - #132

Merged
dengr1065 merged 2 commits into
tobspr-games:masterfrom
MathieuMatiques:webpackcontext-bug
Apr 12, 2026
Merged

Fix bug that causes crash/white screen on Windows, add checks#132
dengr1065 merged 2 commits into
tobspr-games:masterfrom
MathieuMatiques:webpackcontext-bug

Conversation

@MathieuMatiques

Copy link
Copy Markdown

This PR fixes a bug caused by a difference in behavior of import.meta.webpackContext between Rspack and Webpack.

It also add checks to make sure that webworkers are not executed on the main thread (which was part of the cause of the crash/white screen).

Fixes yet another regression from migrating to Rspack, may be reverted
eventually if Rspack behavior changes
This makes it easy to catch bugs that involve executing webworkers
inappropiately
@dengr1065
dengr1065 merged commit 4e7fd48 into tobspr-games:master Apr 12, 2026
1 check passed
@dengr1065

Copy link
Copy Markdown
Collaborator

Thanks for the bug fix!

@dengr1065 dengr1065 mentioned this pull request Apr 12, 2026
@MathieuMatiques
MathieuMatiques deleted the webpackcontext-bug branch April 12, 2026 15:39
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