aboutsummaryrefslogtreecommitdiff
path: root/node_modules/enhanced-resolve/lib/NextPlugin.js
blob: 0db218c81210baa9e82aa733e7392a93e90dfcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
function NextPlugin(source, target) {
	this.source = source;
	this.target = target;
}
module.exports = NextPlugin;

NextPlugin.prototype.apply = function(resolver) {
	var target = this.target;
	resolver.plugin(this.source, function(request, callback) {
		resolver.doResolve(target, request, null, callback);
	});
};