Skip to content

Commit

Permalink
Add browserify support - Fixes mrdoob#4777
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron committed May 6, 2014
1 parent 57328e8 commit 85a7725
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Three.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

var THREE = { REVISION: '68dev' };

// browserify support
if (typeof module === 'object') {
module.exports = THREE;
}

self.console = self.console || {

info: function () {},
Expand Down

0 comments on commit 85a7725

Please sign in to comment.