
module.exports = process.browser
  
  // Browserify? Export riot.js
  ? require('../../riot')

  // Node? Export compiler.js
  : { compile: require('../../lib/compiler').compile }


// For browserify, export riot.js
var self = module.exports = require('../../riot')

// For node, export riot+compiler.js
if(!process.browser) self.compiler = require('../../riot+compiler')

--- 
+++ 
@@ -1,8 +1,6 @@
 
-module.exports = process.browser
-  
-  // Browserify? Export riot.js
-  ? require('../../riot')
+// For browserify, export riot.js
+var self = module.exports = require('../../riot')
 
-  // Node? Export compiler.js
-  : { compile: require('../../lib/compiler').compile }
+// For node, export riot+compiler.js
+if(!process.browser) self.compiler = require('../../riot+compiler')
Fix module to return a compiler in Node
