From 16139e1dc71c6fe11934bbc29c19775a6b97e17d Mon Sep 17 00:00:00 2001 From: vilicvane Date: Wed, 21 Oct 2015 17:59:38 +0800 Subject: [PATCH] Fix a bug caused by last line being a `//` comment Such as `//# sourceMappingURL=...`. --- lib/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundle.js b/lib/bundle.js index d18b2f6..e0daf7a 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -122,7 +122,7 @@ function bundle (input, complete) { dep.source = '//' + dep.source; } - req += dep.source + "}"; + req += dep.source + "\n}"; dbuffer.push(JSON.stringify(dep.id) + ": ["+req+", "+!!dep.entry+", "+JSON.stringify(dep.deps)+"]") }