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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

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.

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 changed the title Draft: Fix #139 recursion error Fix #139 recursion error Jul 12, 2024
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
1 participant