@@ -108,14 +108,12 @@ UmdMainTemplatePlugin.prototype.apply = function(compilation) {
108108 amdFactory = "factory" ;
109109 }
110110
111- console . log ( "AUXILIARY COMMENT DAMNIT" , this . auxiliaryComment ) ;
112-
113111 return new ConcatSource ( new OriginalSource (
114112 "(function webpackUniversalModuleDefinition(root, factory) {\n" +
115- " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . commonjs2 || "" ) ) +
113+ " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . commonjs2 || "" ) ) + "\n" +
116114 " if(typeof exports === 'object' && typeof module === 'object')\n" +
117115 " module.exports = factory(" + externalsRequireArray ( "commonjs2" ) + ");\n" +
118- " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . amd || "" ) ) +
116+ " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . amd || "" ) ) + "\n" +
119117 " else if(typeof define === 'function' && define.amd)\n" +
120118 ( requiredExternals . length > 0 ?
121119 ( this . name && this . namedDefine === true ?
@@ -128,12 +126,12 @@ UmdMainTemplatePlugin.prototype.apply = function(compilation) {
128126 )
129127 ) +
130128 ( this . name ?
131- " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . commonjs || "" ) ) +
129+ " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . commonjs || "" ) ) + "\n" +
132130 " else if(typeof exports === 'object')\n" +
133131 " exports[" + libraryName ( this . name ) + "] = factory(" + externalsRequireArray ( "commonjs" ) + ");\n" +
134132 " else\n" +
135133 " " + replaceKeys ( accessorAccess ( "root" , this . name ) ) + " = factory(" + externalsRootArray ( externals ) + ");\n" :
136- " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . root || "" ) ) +
134+ " //" + ( this . auxiliaryComment && typeof this . auxiliaryComment === 'string' ? this . auxiliaryComment : ( this . auxiliaryComment . root || "" ) ) + "\n" +
137135 " else {\n" +
138136 ( externals . length > 0 ?
139137 " var a = typeof exports === 'object' ? factory(" + externalsRequireArray ( "commonjs" ) + ") : factory(" + externalsRootArray ( externals ) + ");\n" :
0 commit comments