Update JsonpExportMainTemplatePlugin.js

Fix:

`TypeError: Object #<JsonpExportMainTemplatePlugin> has no method 'applyPluginsWaterfall'`

This is the same bug as was fixed in https://github.com/webpack/webpack/commit/614891e
This commit is contained in:
Daniel Walker 2014-10-12 17:51:16 -06:00
parent f0997230f3
commit 1ea87ef5bb
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ function JsonpExportMainTemplatePlugin(name) {
module.exports = JsonpExportMainTemplatePlugin;
JsonpExportMainTemplatePlugin.prototype.apply = function(mainTemplate) {
mainTemplate.plugin("render", function(source, chunk, hash) {
var name = this.applyPluginsWaterfall("asset-path", this.name || "", {
var name = mainTemplate.applyPluginsWaterfall("asset-path", this.name || "", {
hash: hash,
chunk: chunk
});