Lines Matching refs:chain
125 * The output of the `resolve` chain of hooks is passed into the `load` chain of hooks.
268 const chain = this.#chains.resolve;
300 const nextResolve = nextHookFactory(chain[chain.length - 1], meta, { validateArgs, validateOutput });
399 const chain = this.#chains.load;
445 const nextLoad = nextHookFactory(chain[chain.length - 1], meta, { validateArgs, validateOutput });
803 * A utility function to iterate through a hook chain, track advancement in the
804 * chain, and generate and supply the `next<HookName>` argument to the custom
806 * @param {Hook} current The (currently) first hook in the chain (this shifts
809 * along the chain.
810 * @param {boolean} meta.chainFinished Whether the end of the chain has been
814 * @param {string} meta.hookName The kind of hook the chain is (ex 'resolve')
819 * @returns {function next<HookName>(...hookArgs)} The next hook in the chain.
843 `ESM custom loader '${hookName}' advanced beyond the end of the chain.`,