Skip to content

TURBOPACK: add runtime js chunk load fallback#137

Merged
fireairforce merged 1 commit into
utoofrom
update-utoopack-runtime-code
Mar 31, 2026
Merged

TURBOPACK: add runtime js chunk load fallback#137
fireairforce merged 1 commit into
utoofrom
update-utoopack-runtime-code

Conversation

@fireairforce
Copy link
Copy Markdown
Member

add fallback for #126

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces logic to detect existing scripts in the DOM to avoid redundant loading of runtime JS chunks. Review feedback highlights that the loadingStarted flag is applied too broadly, potentially breaking fallback loading. Additionally, the script detection logic is fragile due to lack of error handling for malformed URIs and unescaped characters in DOM selectors. Finally, the resolver state should be explicitly updated when existing scripts are found to ensure consistency.

@fireairforce fireairforce merged commit c6c1c2e into utoo Mar 31, 2026
13 of 26 checks passed
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.

1 participant