Skip to content

Commit

Permalink
Merge pull request jashkenas#156 from yjerem/iced2-requirejs-fix
Browse files Browse the repository at this point in the history
Fix jashkenas#155 (RequireJS bug)
  • Loading branch information
maxtaco committed Jun 12, 2015
2 parents 5b7b0e9 + 86ed460 commit 4596901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ task 'build:browser', 'rebuild the merged script for inclusion in the browser',
b.add "./lib/coffee-script/browser.js"
await b.bundle { standalone : 'CoffeeScript' }, defer err, code
console.error err if err?
code = "(function(root){\n" + code + "\nroot.CoffeeScript = CoffeeScript;\n})(this);"
code = "(function(root){\n" + code + "\nif (typeof CoffeeScript !== 'undefined') { root.CoffeeScript = CoffeeScript; }\n})(this);"

fs.writeFileSync outFileName(false), header + '\n' + code
unless process.env.MINIFY is 'false'
Expand Down

0 comments on commit 4596901

Please sign in to comment.