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

vite-plugin-top-level-await breaks chunk's hash generation in Vite #44

Open
AlokTakshak opened this issue Feb 9, 2024 · 1 comment
Open
Labels
help wanted Extra attention is needed

Comments

@AlokTakshak
Copy link

Since vite-plugin-top-level-await modifies the code of a chunk in the generateBundle steps, the code for a chunk is updated, but the file hash remains the same. This can cause issues if we use cache, as even though the content is updated, the file hash is not. Consequently, we don't receive the latest changes.

@Menci
Copy link
Owner

Menci commented Feb 9, 2024

Do you have any idea on fixing it?

@Menci Menci added the help wanted Extra attention is needed label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants