MCPcopy Index your code
hub / github.com/webpack/webpack / apply

Method apply

lib/typescript/TypeScriptPlugin.js:153–160  ·  view source on GitHub ↗

* @param {Compiler} compiler webpack compiler * @returns {void}

(compiler)

Source from the content-addressed store, hash-verified

151 * @returns {void}
152 */
153 apply(compiler) {
154 compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
155 NormalModule.getCompilationHooks(compilation).processResult.tap(
156 PLUGIN_NAME,
157 (result, module) => this._processResult(result, module)
158 );
159 });
160 }
161
162 /**
163 * processResult tap body. Returns the input untouched unless this is a

Callers

nothing calls this directly

Calls 3

_processResultMethod · 0.95
tapMethod · 0.80
getCompilationHooksMethod · 0.45

Tested by

no test coverage detected