Skip to content

Commit 9e53d4f

Browse files
committed
Merge pull request #433 from d10/update-exports
Use a more thorough check when exporting.
2 parents d899797 + 3d89cd4 commit 9e53d4f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

template/_footer.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ if (typeof define === 'function' && define.amd) {
88
define('raven', [], function() {
99
return Raven;
1010
});
11-
} else if (typeof module === 'object') {
11+
} else if (typeof module === 'object' && module.exports) {
1212
// browserify
1313
module.exports = Raven;
14-
} else if (typeof exports === 'object') {
15-
// CommonJS
16-
exports = Raven;
1714
}
1815

1916
})(typeof window !== 'undefined' ? window : this);

0 commit comments

Comments
 (0)