MCPcopy
hub / github.com/webpack/webpack / addDependency

Method addDependency

declarations/LoaderContext.d.ts:169–169  ·  view source on GitHub ↗

* Adds a file as dependency of the loader result in order to make them watchable. * For example, html-loader uses this technique as it finds src and src-set attributes. * Then, it sets the url's for those attributes as dependencies of the html file that is parsed.

(file: string)

Source from the content-addressed store, hash-verified

167 * Then, it sets the url's for those attributes as dependencies of the html file that is parsed.
168 */
169 addDependency(file: string): void;
170
171 addMissingDependency(context: string): void;
172

Callers 15

buildMethod · 0.65
handlerMethod · 0.65
handlerMethod · 0.65
getResolveContextMethod · 0.65
addDependencyMethod · 0.65
createAcceptHandlerMethod · 0.65
createDeclineHandlerMethod · 0.65
handlerMethod · 0.65
buildMethod · 0.65
buildMethod · 0.65
buildMethod · 0.65
buildMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected