MCPcopy
hub / github.com/webpack/webpack / setPure

Method setPure

lib/optimize/InnerGraph.js:64–68  ·  view source on GitHub ↗

* Sets the pure condition * @param {PureCondition} pure pure condition * @returns {void}

(pure)

Source from the content-addressed store, hash-verified

62 * @returns {void}
63 */
64 setPure(pure) {
65 this.conditional = typeof pure === "function";
66 this._pure = pure === true;
67 this.pureFn = typeof pure === "function" ? pure : undefined;
68 }
69
70 /**
71 * @param {Compilation} compilation compilation

Callers 2

constructorMethod · 0.95
tagTopLevelSymbolFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected