From df53cadfb61f84274c4ec991f0144eda6f4b81ca Mon Sep 17 00:00:00 2001 From: Florin Date: Mon, 30 Jan 2012 16:47:12 +0100 Subject: [PATCH] Stitch produces an invalid file if one of the stitched javascript files ends with a line comment without newline eg. //This is the last line This is a very simple fix which seems to solve the problem. --- src/stitch.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stitch.coffee b/src/stitch.coffee index cecca07..244510f 100644 --- a/src/stitch.coffee +++ b/src/stitch.coffee @@ -114,7 +114,7 @@ exports.Package = class Package for name, {filename, source} of sources result += if index++ is 0 then "" else ", " result += JSON.stringify name - result += ": function(exports, require, module) {#{source}}" + result += ": function(exports, require, module) {#{source}\n}" result += """ });\n