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

    Interface IChunkRegistryInternal

    interface IChunkRegistry {
        chunkModules: Map<string, Module>;
        chunks: Map<string, Chunk>;
        addChunkModule(
            chunkId: string | number,
            moduleId: string | number,
            namespace: string,
            urlPath: string,
        ): void;
        asyncModuleImport(path: string): Promise<any>;
        checkModule(namespace: string, id: string): any;
        getChunk(chunkId: string | number): Chunk | null;
        loadChunk(
            original: Function,
            url: string,
            done: () => Promise<void>,
            key: number,
            chunkId: string | number,
        ): Promise<void>;
    }

    Implemented by

    Index

    Properties

    chunkModules: Map<string, Module>
    chunks: Map<string, Chunk>

    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