MCPcopy
hub / github.com/webpack/webpack / throwMissingModuleErrorFunction

Method throwMissingModuleErrorFunction

lib/RuntimeTemplate.js:559–563  ·  view source on GitHub ↗

* Throw missing module error function. * @param {object} options generation options * @param {string=} options.request request string used originally * @returns {string} generated error function

({ request })

Source from the content-addressed store, hash-verified

557 * @returns {string} generated error function
558 */
559 throwMissingModuleErrorFunction({ request }) {
560 return `function webpackMissingModule() { ${this.throwMissingModuleErrorBlock(
561 { request }
562 )} }`;
563 }
564
565 /**
566 * Returns generated error IIFE.

Callers 2

missingModuleMethod · 0.95
missingModulePromiseMethod · 0.95

Calls 1

Tested by

no test coverage detected