Skip to content

Commit

Permalink
Merge pull request #32 from BePo65/bepo65/issue31
Browse files Browse the repository at this point in the history
Fix issue #31 - error using pig.js in an umd environment
  • Loading branch information
schlosser authored Apr 17, 2021
2 parents 1e98008 + 5ba8426 commit fcf9b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pig.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@

// Export Pig into the global scope.
if (typeof define === 'function' && define.amd) {
define([], function() { return Pig; });
define([], function() { return { Pig: Pig }; });
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = Pig;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/pig.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fcf9b28

Please sign in to comment.