MCPcopy
hub / github.com/webpack/webpack / handleParseError

Method handleParseError

lib/NormalModule.js:1822–1831  ·  lib/NormalModule.js::NormalModule.handleParseError
(e)

Source from the content-addressed store, hash-verified

1820 * @returns {void}
1821 */
1822 const handleParseError = (e) => {
1823 const source = /** @type {Source} */ (this._source).source();
1824 const loaders = this.loaders.map((item) =>
1825 contextify(options.context, item.loader, compilation.compiler.root)
1826 );
1827 const error = new ModuleParseError(source, e, loaders, this.type);
1828 this.markModuleAsErrored(error);
1829 this._initBuildHash(compilation);
1830 return callback();
1831 };
1832
1833 const handleParseResult = () => {
1834 this.dependencies.sort(

Callers

nothing calls this directly

Calls 4

markModuleAsErroredMethod · 0.95
_initBuildHashMethod · 0.95
sourceMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected