export async function importFreshModule( from: string, specifier: string, ): Promise { // Vitest keys module instances by the full URL string, including the query // suffix. These tests rely on that behavior to emulate code-split chunks. return (await import(/* @vite-ignore */ new URL(specifier, from).href)) as TModule; }