MCPcopy
hub / github.com/webpack/webpack / addInclude

Method addInclude

lib/Compilation.js:2685–2693  ·  view source on GitHub ↗

* Adds the provided string to the compilation. * @param {string} context context path for entry * @param {Dependency} dependency dependency that should be followed * @param {EntryOptions} options options * @param {ModuleCallback} callback callback function * @returns {void} returns

(context, dependency, options, callback)

Source from the content-addressed store, hash-verified

2683 * @returns {void} returns
2684 */
2685 addInclude(context, dependency, options, callback) {
2686 this._addEntryItem(
2687 context,
2688 dependency,
2689 "includeDependencies",
2690 options,
2691 callback
2692 );
2693 }
2694
2695 /**
2696 * Adds the provided string to the compilation.

Callers 1

applyMethod · 0.80

Calls 1

_addEntryItemMethod · 0.95

Tested by

no test coverage detected