fix factory arguments for globals in UMD output

pull/7738/head
Conduitry 9 years ago
parent 65f941079b
commit 68ef70f5d0

@ -206,7 +206,7 @@ function umd(
(function(global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory(${cjsDeps}) :
typeof define === "function" && define.amd ? define(${amdId}${amdDeps}factory) :
(global.${options.name} = factory(${globals}));
(global.${options.name} = factory(${globals.join(', ')}));
}(this, (function (${paramString(dependencies)}) { "use strict";
${getCompatibilityStatements(dependencies)}

Loading…
Cancel
Save