ssrLoadModule
returns an identical module for file urls with hash/search
#19298
Labels
ssrLoadModule
returns an identical module for file urls with hash/search
#19298
Describe the bug
On Vite 5, file url was resolution failure. On Vite 6, it resolves but it looks like module identity is not considering hash/search. I only tested with
ssrLoadModule
entry case, but we should probably check other patterns too (static import, dynamic import, non-analyzable static import).Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-fchdscfz?file=repro.js
Steps to reproduce
node repro.js
System Info
(stackblitz) System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: latest => 6.0.11
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: