Options
All
  • Public
  • Public/Protected
  • All
Menu

These properties are added by the NormalModule

Type parameters

  • OptionsType

Hierarchy

  • NormalModuleLoaderContext

Index

Properties

_compilation?: Compilation
_compiler?: Compiler
mode: "production" | "development" | "none"
rootContext: string
sourceMap?: boolean
utils: { absolutify: any; contextify: any; createHash: any }

Type declaration

  • absolutify:function
    • absolutify(context: string, request: string): string
    • Parameters

      • context: string
      • request: string

      Returns string

  • contextify:function
    • contextify(context: string, request: string): string
    • Parameters

      • context: string
      • request: string

      Returns string

  • createHash:function
    • createHash(algorithm?: string): Hash
    • Parameters

      • Optional algorithm: string

      Returns Hash

version: number
webpack?: boolean

Methods

  • addBuildDependency(dep: string): void
  • Parameters

    • dep: string

    Returns void

  • emitError(error: Error): void
  • Parameters

    • error: Error

    Returns void

  • emitFile(name: string, content: string | Buffer, sourceMap?: string, assetInfo?: AssetInfo): void
  • Parameters

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

    Returns void

  • emitWarning(warning: Error): void
  • Parameters

    • warning: Error

    Returns void

  • Parameters

    • Optional name: string

    Returns WebpackLogger

  • getOptions(): OptionsType
  • getOptions(schema: Schema): OptionsType
  • Returns OptionsType

  • Parameters

    Returns OptionsType