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

Method init

lib/HookCodeFactory.js:92–99  ·  view source on GitHub ↗

* @param {{ type: "sync" | "promise" | "async", taps: Array , interceptors: Array }} options

(options)

Source from the content-addressed store, hash-verified

90 * @param {{ type: "sync" | "promise" | "async", taps: Array<Tap>, interceptors: Array<Interceptor> }} options
91 */
92 init(options) {
93 this.options = options;
94 // `_args` is only read (length / join / [0]) - never mutated - so we
95 // can share the caller's array directly instead of paying for a copy
96 // on every compile.
97 this._args = options.args;
98 this._joinedArgs = undefined;
99 }
100
101 deinit() {
102 this.options = undefined;

Callers 2

createMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected