Skip to content

Commit 40483b8

Browse files
authored
Merge pull request #90 from jaredwy/master
Add support for AMD.
2 parents 441ca6e + 8a246b6 commit 40483b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

BigInteger.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,3 +1225,10 @@ var bigInt = (function (undefined) {
12251225
if (typeof module !== "undefined" && module.hasOwnProperty("exports")) {
12261226
module.exports = bigInt;
12271227
}
1228+
1229+
//amd check
1230+
if ( typeof define === "function" && define.amd ) {
1231+
define( "big-integer", [], function() {
1232+
return bigInt;
1233+
});
1234+
}

0 commit comments

Comments
 (0)