Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix:that the external modules load without reload when lazy-compilation#19477

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Vansh5632 wants to merge4 commits intowebpack:main
base:main
Choose a base branch
Loading
fromVansh5632:lazy-compilation

Conversation

@Vansh5632
Copy link
Contributor

fixes:#19134

Fixed issue with external dependencies not loading properly on first visit when lazy compilation is enabled

Added logic to ensure external dependencies are properly initialized before lazy-loaded chunks that depend on them

Enhanced the LazyCompilationProxyModule to detect and handle external dependencies

Added new runtime helper to ensure external dependencies are loaded in the correct order

if(!hooks){
hooks={
createScript:newSyncWaterfallHook(["source","chunk"])
createScript:newSyncWaterfallHook(["code","chunk"])

Choose a reason for hiding this comment

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

Please avoid unnecessary changes which is not related to fixes

}
returnfalse;
})
:false;

Choose a reason for hiding this comment

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

Bad idea, we should register runtime insideExternalModule

makeSerializable(
ExternalModuleInitFragment,
"webpack/lib/dependencies/ExternalModuleInitFragment"
);

Choose a reason for hiding this comment

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

Why it was removed?

@codspeed-hq
Copy link

CodSpeed Performance Report

Merging#19477 willnot alter performance

ComparingVansh5632:lazy-compilation (520c529) withmain (56dd6ca)

Summary

✅ 4 untouched benchmarks

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@alexander-akaitalexander-akaitalexander-akait left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

After turning on lazyCompilation, the first load of externals will fail

2 participants

@Vansh5632@alexander-akait

[8]ページ先頭

©2009-2025 Movatter.jp