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

Method setup

lib/HookCodeFactory.js:79–87  ·  view source on GitHub ↗
(instance, options)

Source from the content-addressed store, hash-verified

77 }
78
79 setup(instance, options) {
80 const { taps } = options;
81 const { length } = taps;
82 const fns = Array.from({ length });
83 for (let i = 0; i < length; i++) {
84 fns[i] = taps[i].fn;
85 }
86 instance._x = fns;
87 }
88
89 /**
90 * @param {{ type: "sync" | "promise" | "async", taps: Array<Tap>, interceptors: Array<Interceptor> }} options

Callers 10

COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80
COMPILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected