kernl API
    Preparing search index...

    Function setupModules

    • Set up each module in order over one kernel context. use reads another module's api when it is called, so a module may keep it for later. A module that answers a domain in KERNEL_DOMAINS is refused with invalid:module-domain:<domain>. Whatever is refused, the modules already set up are disposed before the error is thrown.

      Parameters

      • modules: readonly AnyKernlModule[]

        The host's module list, already checked with checkModules.

      • parts: KernelContextParts

        What the kernel builds each module's context from.

      • bindings: boolean

        Whether kehto's prelude renders domain bindings here.

      Returns ComposedModules

      The composed modules.

      const composed = setupModules([themeModule(), socialModule()], parts, supportsDomainBindings());
      Object.assign(registry, composed.services);