Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/the-system/loaders.ts

Raw
/**
 * Centralized lazy loaders for The System implementation modules.
 *
 * Keeping every loader here means one shared promise per target module
 * across all importing files, so no two concurrent entry points can race
 * jiti's module-cache-free loader into a partially initialized module.
 */
import { lazy } from "./lazy.js";

export const loadSystem = lazy(() => import("./system.js"));
export const loadStartupNotice = lazy(() => import("./startup-notice.js"));
export const loadSystemCommand = lazy(() => import("./system-command.js"));
export const loadSystemRenderer = lazy(() => import("./system-renderer.ts"));
export const loadBoardServer = lazy(() => import("./board-server.ts"));
export const loadOpenBrowser = lazy(() => import("./open-browser.ts"));
export const loadBundleSlot = lazy(() => import("./bundle-slot.js"));
export const loadBoardState = lazy(() => import("./board-state.ts"));
export const loadProjectIndex = lazy(() => import("./project-index.ts"));