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

Fix bug with recursive bundles depending on items from original modules. #1002

Merged
merged 7 commits into from
Oct 16, 2024

Conversation

maximebuyse
Copy link
Contributor

Fixes a bug found while investigating #995 . More generally this fixes many problems in the bundling of cyclic dependencies

@maximebuyse
Copy link
Contributor Author

As described here the problem is more complex than I usually thought if one wants to minimize the amount of bundled items. So this PR implements a conservative approach (that is much more simple than what we did before): when there is a cycle at the module level, it bundles together in a new module everything the content of all the modules in the cycle. #1005 will track whether this is practical enough and if we should find an algorithm to minimize bundles.

Copy link
Collaborator

@W95Psp W95Psp left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@W95Psp W95Psp enabled auto-merge October 16, 2024 08:53
@W95Psp
Copy link
Collaborator

W95Psp commented Oct 16, 2024

Looks like tests snapshot are not up to date? 🤔

@maximebuyse
Copy link
Contributor Author

Looks like tests snapshot are not up to date? 🤔

Yes, noticed that too. I am looking into it.

@W95Psp W95Psp added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit cf1571e Oct 16, 2024
13 checks passed
@W95Psp W95Psp deleted the fix-cyclic-dependencies branch October 16, 2024 10:36
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.

2 participants