From 5126bb58424dbbe2a2f9b1641db95784ce2de449 Mon Sep 17 00:00:00 2001 From: Quentin Raynaud Date: Thu, 31 Jul 2014 14:34:42 +0200 Subject: [PATCH] Add missing semi-colon when using source maps When minifying and concatenating files the missing trailing semi-colon can create side effects resulting in bugs. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a076949..4247cb9 100644 --- a/index.js +++ b/index.js @@ -109,7 +109,7 @@ module.exports = function (opts) { /^\/\/#/, function () { return opts.sourceMapPrefix } ) } - stream.push(Buffer('\n' + comment + '\n')); + stream.push(Buffer(';\n' + comment + '\n')); } if (!sourcemap && !opts.standalone) stream.push(Buffer(';\n'));