mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
7 lines
197 B
TypeScript
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;
|
|
}
|