Projekt

Obecné

Profil

Stáhnout (503 Bajtů) Statistiky
| Větev: | Revize:
1
/*
2
	MIT License http://www.opensource.org/licenses/mit-license.php
3
	Author Tobias Koppers @sokra
4
*/
5
"use strict";
6

    
7
module.exports = class NextPlugin {
8
	constructor(source, target) {
9
		this.source = source;
10
		this.target = target;
11
	}
12

    
13
	apply(resolver) {
14
		const target = resolver.ensureHook(this.target);
15
		resolver.getHook(this.source).tapAsync("NextPlugin", (request, resolveContext, callback) => {
16
			resolver.doResolve(target, request, null, resolveContext, callback);
17
		});
18
	}
19
};
(21-21/39)