Skip to content

Commit 86c5947

Browse files
Larkin FamilyLarkin Family
authored andcommitted
Added tests and fixed spelling error causing initial tests to fail
1 parent 164e33b commit 86c5947

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎bin/webpack.js‎

100644100755
File mode changed.

‎lib/LibraryTemplatePlugin.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ function accessorAccess(base, accessor, joinWith) {
2222
}).join(joinWith || "; ");
2323
}
2424

25-
function LibraryTemplatePlugin(name, target, umdNamedDefine, auxilaryComment) {
25+
function LibraryTemplatePlugin(name, target, umdNamedDefine, auxiliaryComment) {
2626
this.name = name;
2727
this.target = target;
2828
this.umdNamedDefine = umdNamedDefine;
29-
this.auxilaryComment = auxilaryComment;
29+
this.auxiliaryComment = auxiliaryComment;
3030
}
3131
module.exports = LibraryTemplatePlugin;
3232
LibraryTemplatePlugin.prototype.apply = function(compiler) {
@@ -65,7 +65,7 @@ LibraryTemplatePlugin.prototype.apply = function(compiler) {
6565
compilation.apply(new UmdMainTemplatePlugin(this.name, {
6666
optionalAmdExternalAsGlobal: this.target === "umd2",
6767
namedDefine: this.umdNamedDefine,
68-
auxilaryComment: this.auxilaryComment
68+
auxiliaryComment: this.auxiliaryComment
6969
}));
7070
break;
7171
case "jsonp":

‎lib/UmdMainTemplatePlugin.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ UmdMainTemplatePlugin.prototype.apply = function(compilation) {
108108
amdFactory = "factory";
109109
}
110110

111+
console.log("AUXILIARY COMMENT DAMNIT", this.auxiliaryComment);
112+
111113
return new ConcatSource(new OriginalSource(
112114
"(function webpackUniversalModuleDefinition(root, factory) {\n" +
113115
" //" + (this.auxiliaryComment && typeof this.auxiliaryComment === 'string' ? this.auxiliaryComment : (this.auxiliaryComment.commonjs2 || "")) +

0 commit comments

Comments
 (0)