/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/

"use strict";

const ModuleDependency = require("./ModuleDependency");
const ModuleDependencyAsId = require("./ModuleDependencyTemplateAsId");

class RequireResolveDependency extends ModuleDependency {
	constructor(request, range) {
		super(request);
		this.range = range;
	}

	get type() {
		return "require.resolve";
	}
}

RequireResolveDependency.Template = ModuleDependencyAsId;

module.exports = RequireResolveDependency;

@@ -109,16 +109,78 @@
 rict%22;%0A%0A
+const makeSerializable = require(%22../util/makeSerializable%22);%0A
 const Mo
@@ -223,24 +223,24 @@
 pendency%22);%0A
-
 const Module
@@ -407,16 +407,17 @@
 quest);%0A
+%0A
 %09%09this.r
@@ -479,17 +479,336 @@
 ve%22;%0A%09%7D%0A
-%7D
+%0A%09serialize(context) %7B%0A%09%09const %7B write %7D = context;%0A%0A%09%09write(this.range);%0A%0A%09%09super.serialize(context);%0A%09%7D%0A%0A%09deserialize(context) %7B%0A%09%09const %7B read %7D = context;%0A%0A%09%09this.range = read();%0A%0A%09%09super.deserialize(context);%0A%09%7D%0A%7D%0A%0AmakeSerializable(%0A%09RequireResolveDependency,%0A%09%22webpack/lib/dependencies/RequireResolveDependency%22%0A);
 %0A%0ARequir

make serializable