MCPcopy
hub / github.com/webpack/tapable / header

Method header

lib/HookCodeFactory.js:167–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 header() {
168 let code = "";
169 code += this.needContext() ? "var _context = {};\n" : "var _context;\n";
170 code += "var _x = this._x;\n";
171 if (this.options.interceptors.length > 0) {
172 code += "var _taps = this.taps;\n";
173 code += "var _interceptors = this.interceptors;\n";
174 }
175 return code;
176 }
177
178 needContext() {
179 const { taps } = this.options;

Callers 1

createMethod · 0.95

Calls 1

needContextMethod · 0.95

Tested by

no test coverage detected