On this page

class webpack.ContextModuleFactory extends ModuleFactory

Represents the module factory runtime component.

new ContextModuleFactory(): ContextModuleFactory
Attributes
hooks:Readonly<{ afterResolve: AsyncSeriesWaterfallHook<[AfterContextResolveData], false | void | AfterContextResolveData>; alternativeRequests: AsyncSeriesWaterfallHook<[ContextAlternativeRequest[], ContextModuleOptions], ContextAlternativeRequest[]>; alternatives: FakeHook<Pick<AsyncSeriesWaterfallHook<[ContextAlternativeRequest[]], ContextAlternativeRequest[]>, "name" | "tap" | "tapAsync" | "tapPromise">>; beforeResolve: AsyncSeriesWaterfallHook<[BeforeContextResolveData], false | void | BeforeContextResolveData>; contextModuleFiles: SyncWaterfallHook<[string[]], string[]> }>
resolverFactory:ResolverFactory
create(data, callback): void
Attributes
callback:(err?: Error | null, result?: ModuleFactoryResult) => void
Returns:void

Processes the provided data.


resolveDependencies(fs, options, callback): void
Attributes
callback:(err: Error | null, dependencies?: ContextElementDependency[]) => void
Returns:void

Resolves dependencies.

Attributes
context:string
request:string