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 #139 recursion error #141

Merged
merged 4 commits into from
Sep 14, 2024
Merged

Conversation

Niicck
Copy link
Collaborator

@Niicck Niicck commented Jul 12, 2024

Fixes #139

Django-vite fails to parse manifests that contain circular imports. Since this is a valid configuration, we should probably support it.

Also, while I was digging into this part of the code, I re-enabled recursive persistence of already_processed. My theory is that we'll avoid the performance issues seen in #109 by making it into set() instead of a list that constantly gets extended with duplicate tags.

Niicck added 4 commits July 11, 2024 20:45
We basically removed the recursive functionality
of already_processed in this PR:
https://github.com/MrBin99/django-vite/pull/109/files
We did that because the list concatenation was getting
so large for some users. But we can keep the benefits
of saving the recursive tags we've already_processed
(and do so without excessive bloat) by turning
already_processed into a set().
@Niicck Niicck force-pushed the 139-recursion-error branch from f3ad3f4 to a12b5b6 Compare July 12, 2024 02:17
@Niicck Niicck changed the title Draft: Fix #139 recursion error Fix #139 recursion error Jul 12, 2024
@Niicck Niicck requested review from thijskramer and MrBin99 July 12, 2024 02:18
@thijskramer thijskramer merged commit 7efe7d4 into MrBin99:master Sep 14, 2024
6 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.

RecursionError for multi-input vitejs config
3 participants