1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Fixing browser build boilerplate.

This commit is contained in:
Jeremy Ashkenas 2013-06-02 09:21:36 +04:00
parent 342306587c
commit 7b14a6aad2

View file

@ -89,11 +89,11 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
code = ''
for name in ['helpers', 'rewriter', 'lexer', 'parser', 'scope', 'nodes', 'sourcemap', 'coffee-script', 'browser']
code += """
require['./#{name}'] = return function() {
require['./#{name}'] = (function() {
var exports = {}, module = {exports: exports};
#{fs.readFileSync "lib/coffee-script/#{name}.js"}
return module.exports;
}();
})();
"""
code = """
(function(root) {