Skip to content

Commit

Permalink
Fix jashkenas#155 (RequireJS bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeruten committed Jun 10, 2015
1 parent e55a209 commit 86ed460
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 86ed460

Please sign in to comment.