Flarum (v2.0.0-beta.1)
    Preparing search index...

    Class ExportRegistryInternal

    Implements

    Index

    Constructors

    Properties

    chunkModules: Map<string, Module> = ...
    chunks: Map<string, Chunk> = ...
    moduleExports: Map<string, Map<string, any>> = ...
    onLoads: Map<string, Map<string, Function[]>> = ...

    Methods

    • Register a module by the chunk ID it belongs to, the webpack module ID it belongs to, the namespace (extension ID), and its path.

      Parameters

      • chunkId: string | number
      • moduleId: string | number
      • namespace: string
      • urlPath: string

      Returns void

    • Add a function to run when object of id "id" is added (or overridden). If such an object is already registered, the handler will be applied immediately.

      Parameters

      • namespace: string
      • id: string
      • handler: (module: any) => void

      Returns void