UNPKG

@wener/console

Version:

Base console UI toolkit

18 lines (17 loc) 491 B
import { ModuleService } from "./module/ModuleService.js"; export class ConsoleContext { moduleService = new ModuleService(() => { throw new Error("ModuleService.loader is not init"); }); getModuleService() { return this.moduleService; } } let _instance; export function getConsoleContext() { return _instance ||= new ConsoleContext(); } export function setConsoleContext(instance) { _instance = instance; } //# sourceMappingURL=ConsoleContext.js.map