From 792fda48e3096a2ac2962671f6b32e9470b465d6 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 7 Jan 2016 10:45:00 -0800 Subject: [PATCH] [API] Fix whitespace of bundle rewrites --- rebundle.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rebundle.js b/rebundle.js index 23a3ce2ef0..134e3e1b2c 100644 --- a/rebundle.js +++ b/rebundle.js @@ -7,7 +7,9 @@ var glob = require('glob'), function indent(str) { return str.split('\n').map(function (line, index) { - return index === 0 ? line : (' ' + line); + return index === 0 ? line : (' ' + line); + }).filter(function (line) { + return line.trim().length > 0; }).join('\n'); } @@ -17,7 +19,7 @@ function rebundle(file) { outputFile = file.replace(".json", ".js"), contents = [ header, - "legacyRegistry.register(\"", + " legacyRegistry.register(\"", bundleName, "\", ", indent(plainJson),