On this page

class webpack.NormalModuleFactory extends ModuleFactory
new NormalModuleFactory(): NormalModuleFactory
Attributes
context:<string>
hooks:
<Readonly> < <object> >
resolverFactory:<ResolverFactory>
ruleSet:<RuleSet>
cleanupForCache(): void
Returns:<void>

create(data, callback): void
Attributes

Processes the provided data.


createGenerator(type, generatorOptions?): void

Creates a generator.


createParser(type, parserOptions?): void

Creates a parser from the provided type.


getGenerator(type, generatorOptions?): void

Returns generator.


getParser(type, parserOptions?): void

Returns parser.


getResolver(type, resolveOptions?): ResolverWithOptions
Attributes

Returns the resolver.


resolveRequestArray(contextInfo, context, array, resolver, resolveContext, callback): void
Attributes

Resolves request array.


resolveResource(contextInfo, context, unresolvedResource, resolver, resolveContext, callback): void
Attributes
context:<string>
unresolvedResource:<string>
resolveContext:<ResolveContext>
callback:<Function>
Returns:<void>

Processes the provided context info.

Creates a multi compiler.

Attributes
result:
{T}
Returns:<void>

Creates a multi compiler.



Attributes
value:<any>

Attributes

Type:
<"use"> | <"use-pre"> | <"use-post">

Attributes
context:<string>
fragment:<string>
query:<string>
resource:<string>

Attributes
execute the rule set
references:<Map>
< <string> , <RuleSetLoaderOptions> > map of references in the rule set (may grow over time)