Interface NormalModuleLoaderContext<OptionsType>

These properties are added by the NormalModule

Type Parameters

  • OptionsType

Hierarchy

  • NormalModuleLoaderContext

Properties

_compilation?: Compilation
_compiler?: Compiler
_module?: NormalModule
mode: "development" | "none" | "production"
rootContext: string
sourceMap?: boolean
utils: {
    absolutify: ((context, request) => string);
    contextify: ((context, request) => string);
    createHash: ((algorithm?) => Hash);
}

Type declaration

  • absolutify: ((context, request) => string)
      • (context, request): string
      • Parameters

        • context: string
        • request: string

        Returns string

  • contextify: ((context, request) => string)
      • (context, request): string
      • Parameters

        • context: string
        • request: string

        Returns string

  • createHash: ((algorithm?) => Hash)
      • (algorithm?): Hash
      • Parameters

        • Optional algorithm: string

        Returns Hash

version: number
webpack?: boolean

Methods

  • Parameters

    • dep: string

    Returns void

  • Parameters

    • error: Error

    Returns void

  • Parameters

    • name: string
    • content: string | Buffer
    • Optional sourceMap: string
    • Optional assetInfo: AssetInfo

    Returns void

  • Parameters

    • warning: Error

    Returns void

  • Parameters

    • Optional name: string

    Returns WebpackLogger

  • Returns OptionsType

  • Parameters

    Returns OptionsType

  • Parameters

    Returns {
        (context, request, callback): void;
        (context, request): Promise<string>;
    }

      • (context, request, callback): void
      • Parameters

        • context: string
        • request: string
        • callback: ((err, res?, req?) => void)

        Returns void

      • (context, request): Promise<string>
      • Parameters

        • context: string
        • request: string

        Returns Promise<string>

  • Parameters

    • context: string
    • request: string
    • callback: ((err, res?, req?) => void)

    Returns any

Generated using TypeDoc