MCPcopy
hub / github.com/webpack/webpack / hasWebTarget

Method hasWebTarget

test/harness/runner/index.js:273–279  ·  view source on GitHub ↗

* @returns {boolean} whether target is web

()

Source from the content-addressed store, hash-verified

271 * @returns {boolean} whether target is web
272 */
273 hasWebTarget() {
274 return (
275 this._targetProperties !== false &&
276 (this._targetProperties.web === true ||
277 this._targetProperties.webworker === true)
278 );
279 }
280
281 /**
282 * @returns {boolean} whether target is node

Callers 5

constructorMethod · 0.95
jsDomMethod · 0.95
createCjsRunnerMethod · 0.95
createCssRunnerMethod · 0.95
onCompiledFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected