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

🐛 compatible with webpack chunk cache logic #2730

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

kuitos
Copy link
Member

@kuitos kuitos commented Oct 13, 2023

@changeset-bot
Copy link

changeset-bot bot commented Oct 13, 2023

🦋 Changeset detected

Latest commit: a618db3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@qiankunjs/loader Patch
qiankun Patch
@qiankunjs/sandbox Patch
@qiankunjs/shared Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
qiankun ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2023 11:10am

@kuitos kuitos linked an issue Oct 13, 2023 that may be closed by this pull request
3 tasks
// To prevent webpack from skipping reload logic and causing the js not to re-execute when a micro app is loaded multiple times, the data-webpack attribute of the script must be removed.
// see https://github.com/webpack/webpack/blob/1f13ff9fe587e094df59d660b4611b1bd19aed4c/lib/runtime/LoadScriptRuntimeModule.js#L131-L136
// FIXME We should determine whether the current micro application is being loaded for the second time. If not, this removal should not be performed.
script.removeAttribute('data-webpack');
Copy link
Member Author

Choose a reason for hiding this comment

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

主要修复逻辑在这里

@kuitos kuitos merged commit 76b6bff into next Oct 19, 2023
4 checks passed
@kuitos kuitos deleted the fix/loadEntry-multiple-result branch October 19, 2023 03:48
@kuitos kuitos mentioned this pull request Oct 19, 2023
3 tasks
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.

[Bug] 3.0 loader bug
1 participant