-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Inconsistent Builds in Module Sets #10506
Comments
I'm not really sure the reproduction example is a minimal. It looks like the difference is alway about a |
I created a minimal repro for this issue based on @kudla's code. Hopefully, this helps to gain traction for this issue. I created a vanilla Vite project and copy pasted the following lines in
Multiple
It outputs |
Cool so that now it is 7/7 validated |
A workaround for me is setting
|
|
vitejs/vite#10506 but it doesn't solve the issue.
The workaround in #10506 doesn't seem to work for me. I created a repo to try testing the workaround using the basic out-of-the-box base sveltekit app. Test repo is here https://github.com/derheld42/repro-vite-10506 |
This repro (#10506 (comment)) was a duplicate of #13672 as the workaround in #13672 (comment) worked. #10506 (comment) was because svelte kit was injecting non-deterministic value (sveltejs/kit#12260). See sveltejs/kit#12260 (comment). Closing as a duplicate. |
Describe the bug
On a same immutable application codebase and environment prerequisites
Vite:build
produces bundles including different sets of dependent modules.As a consequence chunk content and hashes can mutate from build to build.
Reproduction
https://github.com/kudla/vite-bug-reproduction
Steps to reproduce
System Info
Used Package Manager
npm
Logs
Stats grep example
Click to expand!
Clear logs
Click to expand!
Huck Debug Session
Over here I've added a line kind of
And based on this I've got some stats on included modules within several different build sessions.
Numbers in filenames stand for resulting modules amount for aa session
Raw Logs
build-test-1424.log
build-test-1429.log
build-test-1430.log
Preaggregated Comparable Module Sets
modules-1430.log
modules-1429.log
modules-1424.log
And the Largest Module Sets Spread Diff
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: