Skip to content

Commit 3b3f6cb

Browse files
committed
some fixes
1 parent 5f856ec commit 3b3f6cb

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎lib/SetVarMainTemplateDecorator.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ SetVarMainTemplateDecorator.prototype.render = function(hash, chunk, moduleTempl
2222
};
2323
SetVarMainTemplateDecorator.prototype.updateHash = function(hash) {
2424
hash.update("set var");
25-
hash.update(this.varExpression);
25+
hash.update(this.varExpression + "");
26+
hash.update(this.copyObject + "");
2627
this.mainTemplate.updateHash(hash);
2728
};

‎lib/WebpackOptionsApply.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ WebpackOptionsApply.prototype.process = function(options, compiler) {
9090
new NodeTargetPlugin()
9191
);
9292
break;
93+
default:
94+
throw new Error("Unsupported target '" + options.target + "'.");
9395
}
9496
if(options.output.library || options.output.libraryTarget != "var") {
9597
var LibraryTemplatePlugin = require("./LibraryTemplatePlugin");

0 commit comments

Comments
 (0)