MCPcopy Index your code
hub / github.com/webpack/tapable / createHook

Method createHook

test/HookTester.test.js:1318–1338  ·  view source on GitHub ↗
(args, name)

Source from the content-addressed store, hash-verified

1316 }
1317
1318 createHook(args, name) {
1319 try {
1320 return this.hookCreator(args, name);
1321 } catch (err) {
1322 return {
1323 tap: () => {},
1324 tapPromise: () => {},
1325 tapAsync: () => {},
1326 intercept: () => {},
1327 call: () => {
1328 throw err;
1329 },
1330 callAsync: () => {
1331 throw err;
1332 },
1333 promise: () => {
1334 throw err;
1335 }
1336 };
1337 }
1338 }
1339}
1340
1341// eslint-disable-next-line jest/no-export

Callers 5

runForLoopAsyncMethod · 0.95
runForLoopSyncMethod · 0.95
runSyncMethod · 0.95
runAsyncMethod · 0.95
runInterceptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected