Skip to content

Commit

Permalink
Merge pull request #18 from Hacker0x01/fix-for-webpack
Browse files Browse the repository at this point in the history
Fixed compatibility with latest Webpack
  • Loading branch information
jhnns committed Nov 9, 2015
2 parents ce9f940 + 09fb779 commit a6822f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/RewiredDependency.js
Expand Up @@ -12,6 +12,7 @@ function RewiredDependency(request, range) {

RewiredDependency.prototype = Object.create(Dependency.prototype);
RewiredDependency.prototype.type = "rewire";
RewiredDependency.prototype.constructor = RewiredDependency;
RewiredDependency.prototype.isEqualResource = function (other) {
return other instanceof RewiredDependency?
this.request === other.request:
Expand All @@ -20,4 +21,4 @@ RewiredDependency.prototype.isEqualResource = function (other) {

RewiredDependency.Template = require("webpack/lib/dependencies/ModuleDependencyTemplateAsId.js");

module.exports = RewiredDependency;
module.exports = RewiredDependency;

0 comments on commit a6822f9

Please sign in to comment.