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

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

Open
7 tasks done
xuzaixian opened this issue Jul 31, 2023 · 1 comment
Open
7 tasks done
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@xuzaixian
Copy link

xuzaixian commented Jul 31, 2023

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

@stackblitz
Copy link

stackblitz bot commented Jul 31, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@sapphi-red sapphi-red added the p3-minor-bug An edge case that only affects very specific usage (priority) label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

No branches or pull requests

2 participants