MCPcopy
hub / github.com/webpack/webpack / constructor

Method constructor

lib/ResolverFactory.js:81–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80module.exports = class ResolverFactory {
81 constructor() {
82 this.hooks = Object.freeze({
83 /** @type {HookMap<SyncWaterfallHook<[ResolveOptionsWithDependencyType]>>} */
84 resolveOptions: new HookMap(
85 () => new SyncWaterfallHook(["resolveOptions"])
86 ),
87 /** @type {HookMap<SyncHook<[Resolver, ResolveOptions, ResolveOptionsWithDependencyType]>>} */
88 resolver: new HookMap(
89 () => new SyncHook(["resolver", "resolveOptions", "userResolveOptions"])
90 )
91 });
92 /** @type {Map<string, ResolverCache>} */
93 this.cache = new Map();
94 }
95
96 /**
97 * Returns the resolver.

Callers

nothing calls this directly

Calls 1

freezeMethod · 0.80

Tested by

no test coverage detected