Files
openclaw/test/helpers/import-fresh.ts
2026-03-12 02:07:20 -04:00

7 lines
197 B
TypeScript

export async function importFreshModule<TModule>(
from: string,
specifier: string,
): Promise<TModule> {
return (await import(/* @vite-ignore */ new URL(specifier, from).href)) as TModule;
}