/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
var Dependency = require("../Dependency");

function ModuleDependency(request) {
	Dependency.call(this);
	this.request = request;
	this.userRequest = request;
}
module.exports = ModuleDependency;

ModuleDependency.prototype = Object.create(Dependency.prototype);
ModuleDependency.prototype.constructor = ModuleDependency;
ModuleDependency.prototype.isEqualResource = function isEqualResource(other) {
	if(!(other instanceof ModuleDependency))
		return false;
	return this.request === other.request;
};

@@ -97,11 +97,26 @@
 %0A*/%0A
-var
+%22use strict%22%0Aconst
  Dep
@@ -152,24 +152,21 @@
 ncy%22);%0A%0A
-function
+class
  ModuleD
@@ -178,44 +178,66 @@
 ency
-(request) %7B%0A%09Dependency.call(this
+ extends Dependency %7B%0A%09constructor(request) %7B%0A%09%09super(
 );%0A
+%09
 %09thi
@@ -257,16 +257,17 @@
 equest;%0A
+%09
 %09this.us
@@ -291,225 +291,13 @@
 st;%0A
+%09
 %7D%0A
-module.exports = ModuleDependency;%0A%0AModuleDependency.prototype = Object.create(Dependency.prototype);%0AModuleDependency.prototype.constructor = ModuleDependency;%0AModuleDependency.prototype.isEqualResource = function 
+%0A%09
 isEq
@@ -317,16 +317,17 @@
 ther) %7B%0A
+%09
 %09if(!(ot
@@ -362,16 +362,17 @@
 ncy))%0A%09%09
+%09
 return f
@@ -377,16 +377,18 @@
  false;%0A
+%0A
+%09
 %09return 
@@ -419,11 +419,49 @@
 equest;%0A
-%7D
+%09%7D%0A%7D%0A%0Amodule.exports = ModuleDependency
 ;%0A

refactor of ModuleDependency to es6 (#3812)