Skip to content

Commit

Permalink
Merge pull request #918 from sveltejs/fix-umd-globals
Browse files Browse the repository at this point in the history
fix factory arguments for globals in UMD output
  • Loading branch information
Rich-Harris authored Nov 12, 2017
2 parents 60c13a6 + 1bd7026 commit ad12854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/shared/utils/wrapModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand Down

0 comments on commit ad12854

Please sign in to comment.