Files
boc/landvex-admin-v2/node_modules/chartjs-node-canvas/src/freshImport.ts
T
Bernt 6989a98d75 feat: Passwordless cross-device authentication
- Arkitektur: docs/auth/passwordless-architecture.md
- Backend: iom/quixzoom-auth-service/ (FastAPI + Redis)
- Webb: quixzoom-market-pages/se/login/ (QR-kod + polling)
- App: iom/quixzoom-app/src/features/auth/ (push + deep links)

Flöde: QR-kod → app-godkännande → webb-inloggad
2026-07-07 07:11:50 +00:00

21 lines
827 B
TypeScript

// ES Module version of fresh-require
// export const freshImport = async (modulePath: string): Promise<any> => {
// // For ES modules, we need to construct the full URL
// const moduleUrl = new URL(modulePath, import.meta.url).href;
// // Clear module from import cache if possible
// // Note: ES modules caching works differently than CommonJS
// try {
// // Force a new module instance by appending a cache-busting query parameter
// const timestamp = Date.now();
// const urlWithCacheBuster = `${moduleUrl}?cache=${timestamp}`;
// // Dynamic import with cache buster
// const module = await import(/* @vite-ignore */ urlWithCacheBuster);
// return module;
// } catch (error) {
// console.error(`Error importing module ${modulePath}:`, error);
// throw error;
// }
// };