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:
parent
342306587c
commit
7b14a6aad2
1 changed files with 2 additions and 2 deletions
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue