mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fixing browser build boilerplate.
This commit is contained in:
4
Cakefile
4
Cakefile
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user