Got to use the same export object for it to work

This commit is contained in:
Corey Johnson 2011-08-27 21:27:41 -07:00
parent 550967ffe8
commit da04cec4a9

View File

@ -21,7 +21,7 @@ exts =
css: (file) -> __read file
js: (file) ->
code = __read file
exports = {}
exports = __modules[file] # Use existing object (if one exists)
module = exports: exports
src = "function define(cb){cb.call(this,require,exports)};"