-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support libraries defined in a function passed as an argument to IIFE
possible solution for #39
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
(function(root, factory) { | ||
|
||
root.Genie = factory(); | ||
|
||
}(this, function() { | ||
|
||
/** | ||
* Does whatever. | ||
*/ | ||
var Genie = { | ||
/** | ||
* Does something. | ||
*/ | ||
foo: function() {}, | ||
|
||
/** | ||
* Does something else. | ||
*/ | ||
bar: function() {} | ||
}; | ||
|
||
/** | ||
* @private | ||
*/ | ||
function baz() { | ||
|
||
} | ||
|
||
return Genie; | ||
|
||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7777a65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this change manually to the node module does in fact fix my example. Thanks! Waiting for an update to the npm package.