Skip to content

Commit 04e24ed

Browse files
committed
Merge pull request webpack#244 from ryancbarry/master
Bug fix: template.apply() expects dependencyTemplates arg
2 parents 7ce463c + 6d3fdeb commit 04e24ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/DependenciesBlockVariable.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DependenciesBlockVariable.prototype.expressionSource = function(dependencyTempla
2525
this.dependencies.forEach(function(dep) {
2626
var template = dependencyTemplates.get(dep.Class);
2727
if(!template) throw new Error("No template for dependency: " + dep.Class.name);
28-
template.apply(dep, source, outputOptions, requestShortener);
28+
template.apply(dep, source, outputOptions, requestShortener, dependencyTemplates);
2929
});
3030
return source;
3131
};
@@ -34,4 +34,4 @@ DependenciesBlockVariable.prototype.disconnect = function() {
3434
this.dependencies.forEach(function(d) {
3535
d.disconnect();
3636
});
37-
};
37+
};

0 commit comments

Comments
 (0)