MCPcopy
hub / github.com/webpack/webpack / _isEntryModule

Method _isEntryModule

lib/html/HtmlGenerator.js:169–175  ·  view source on GitHub ↗

* Whether this HTML module is reached as a compilation entry. Entry * modules have at least one incoming connection without an * `originModule` (the EntryDependency added by `compilation.addEntry`). * @param {NormalModule} module module * @returns {boolean} true when the module is an entry

(module)

Source from the content-addressed store, hash-verified

167 * @returns {boolean} true when the module is an entry
168 */
169 _isEntryModule(module) {
170 if (!this._moduleGraph) return false;
171 for (const connection of this._moduleGraph.getIncomingConnections(module)) {
172 if (!connection.originModule) return true;
173 }
174 return false;
175 }
176
177 /**
178 * Whether to emit the extracted `.html` file for this module.

Callers 1

_shouldExtractMethod · 0.95

Calls 1

Tested by

no test coverage detected