Skip to content

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

@xuzaixian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions