Skip to content

Revert "feat(webpack): add StartupChunkDependenciesRuntimeModule to fix chunk splitting"#705

Merged
colinaaa merged 1 commit intomainfrom
revert-658-feat/add-startup-chunk-deps-runtime
May 6, 2025
Merged

Revert "feat(webpack): add StartupChunkDependenciesRuntimeModule to fix chunk splitting"#705
colinaaa merged 1 commit intomainfrom
revert-658-feat/add-startup-chunk-deps-runtime

Conversation

@colinaaa
Copy link
Collaborator

@colinaaa colinaaa commented May 6, 2025

Reverts #658

This results in a 2% increase in the bundle size of the hello-world project.

It seems that the check if (chunkGraph.hasChunkEntryDependentChunks(chunk)) in webpack is absent.

https://github.com/webpack/webpack/blob/0f42dc5b8bbfbc71f5550fe1c2e9b2edf38b4c25/lib/runtime/StartupChunkDependenciesPlugin.js#L59

@changeset-bot
Copy link

changeset-bot bot commented May 6, 2025

⚠️ No Changeset found

Latest commit: 4348090

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link

codspeed-hq bot commented May 6, 2025

CodSpeed Performance Report

Merging #705 will not alter performance

Comparing revert-658-feat/add-startup-chunk-deps-runtime (4348090) with main (40fb90f)

Summary

✅ 1 untouched benchmarks

@colinaaa colinaaa marked this pull request as ready for review May 6, 2025 12:31
@colinaaa colinaaa merged commit 40c9031 into main May 6, 2025
25 of 29 checks passed
@colinaaa colinaaa deleted the revert-658-feat/add-startup-chunk-deps-runtime branch May 6, 2025 12:36
github-merge-queue bot pushed a commit that referenced this pull request May 19, 2025
…le to fix chunk splitting" (#798)

<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

Rspack now has exposed `hasChunkEntryDependentChunks` on ChunkGraph.

Related links:
- #658
- #705
- https://github.com/web-infra-dev/rspack/releases/tag/v1.3.10
- web-infra-dev/rspack#10286

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).

---------

Signed-off-by: BitterGourd <91231822+gaoachao@users.noreply.github.com>
Co-authored-by: Qingyu Wang <40660121+colinaaa@users.noreply.github.com>
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