Skip to content

Chunk hash did not change when I only update experimental.renderBuiltUrl function. #13996

Closed

Description

@xuzaixian

Describe the bug

When I only update renderBuiltUrl function in vite.config
The chunk hash will not change, but chunk code is diffrent than before.
I believe it's not expected.

Reproduction

https://stackblitz.com/edit/vitejs-vite-mtwhq8?file=vite.config.ts

Steps to reproduce

  1. npm install
  2. npm build
    the hash of index.js chunk is 597e1bff
  3. update experimental.renderBuiltUrl function, For example, update render-test1 to render-test2
  4. npm build
    the hash of index.js chunk is still 597e1bff. But this chunk code is different than before.

System Info

any

Used Package Manager

npm

Logs

No response

Validations

Activity

  1. bolt-new-by-stackblitz commented on Jul 31, 2023

    @bolt-new-by-stackblitz
  2. added
    p3-minor-bug
    on Jul 31, 2023
  3. hartz89 commented on Jan 16, 2026

    @hartz89

    I've raised a draft PR (#21433) to try to get the ball rolling on a fix here- please let me know if there are any immediate concerns with the solution. If the approach seems sensible, I'll work on getting the PR formalized, tests added, etc.

  4. hartz89 commented on Mar 19, 2026

    @hartz89

    I've finalized my PR for this fix (#21433), please have a look!

  5. added 2 commits that reference this issue on Mar 19, 2026
    a8e28f9
    d04500f
  6. added 4 commits that reference this issue on Apr 20, 2026
    731dfe0
    3ee7490
    b4b9d25
    cec94cd
  7. locked and limited conversation to collaborators on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions