MCPcopy
hub / github.com/webpack/webpack / needBuild

Method needBuild

lib/Module.js:942–949  ·  view source on GitHub ↗

* Checks whether the module needs to be rebuilt for the current build state. * @param {NeedBuildContext} context context info * @param {NeedBuildCallback} callback callback function, returns true, if the module needs a rebuild * @returns {void}

(context, callback)

Source from the content-addressed store, hash-verified

940 * @returns {void}
941 */
942 needBuild(context, callback) {
943 callback(
944 null,
945 !this.buildMeta ||
946 this.needRebuild === Module.prototype.needRebuild ||
947 deprecatedNeedRebuild(this, context)
948 );
949 }
950
951 /**
952 * Checks whether it needs rebuild.

Callers 1

_buildModuleMethod · 0.45

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected