#23487·Vite

Pass filenames including queries to `renderBuiltUrl` like <8.3.0

Author: sapphi-redCreated Sep 15, 2026Updated Sep 15, 2026
Labelsp3-downstream-blocker

https://github.com/vitejs/vite/pull/22886 made filenames passed to renderBuiltUrl not to contain the queries (and hashes). But Vinext returns URL containing queries from renderBuiltUrl and that causes final URL to be like asset.svg?dpl=id?marker=value (https://github.com/cloudflare/vinext/pull/3263, it was asset.svg?dpl=id&marker=value as the query injection was handled by renderBuiltUrl).

To fix this we need to either:

  • pass a new param to renderBuiltUrl that contains queries / hashes
  • include queries / hashes in the filename param of renderBuiltUrl as before

Another thing we need to decide is whether this query handling should exist on Rolldown (/ Rollup) side, or be handled by urlId.