MCPcopy
hub / github.com/webpack/webpack / registerLoader

Method registerLoader

lib/serialization/ObjectMiddleware.js:261–263  ·  view source on GitHub ↗

* Processes the provided reg exp. * @param {RegExp} regExp RegExp for which the request is tested * @param {(request: string) => boolean} loader loader to load the request, returns true when successful * @returns {void}

(regExp, loader)

Source from the content-addressed store, hash-verified

259 * @returns {void}
260 */
261 static registerLoader(regExp, loader) {
262 loaders.set(regExp, loader);
263 }
264
265 /**
266 * Processes the provided constructor.

Callers 1

serialization.jsFile · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected