From e339cfa95fa8dcdde5d0b66c372f1b8d4a7c2b96 Mon Sep 17 00:00:00 2001 From: Henrik Vendelbo Date: Sat, 24 Oct 2015 23:11:25 +0200 Subject: [PATCH] disabled source mapping URLs --- lib/client/bundler/index.js | 4 ++-- lib/socketstream.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/client/bundler/index.js b/lib/client/bundler/index.js index 3ba6d9cf..a8c790d7 100644 --- a/lib/client/bundler/index.js +++ b/lib/client/bundler/index.js @@ -620,9 +620,9 @@ module.exports = function(ss,options) { formatKb: formatKb, wrapModule: function(modPath, code) { - var modName = path.basename(modPath)+'.js'; return 'require.define("' + modPath + '", function (require, module, exports, __dirname, __filename){\n' + code + '\n});'+ - '\n//# sourceMappingURL='+modPath+'.js\n'; + ''; + //TODO '\n//# sourceMappingURL='+modPath+'.js\n'; } }; diff --git a/lib/socketstream.js b/lib/socketstream.js index 504ea5c6..2826c271 100644 --- a/lib/socketstream.js +++ b/lib/socketstream.js @@ -189,14 +189,14 @@ var loaded = false; function load() { if (!loaded) { - var loaded = [], skipped = []; + var addons = [], skipped = []; // load addon modules api.require.forEach(['socketstream-*','socketstream.*'],function(mod,id) { if (typeof mod === 'function') { try { mod(api); - loaded.push(id); + addons.push(id); } catch(ex) { debug('Failed to load '+id+'. ',ex); } @@ -205,7 +205,7 @@ function load() { } }); debug('Addons: '+ - loaded.length? loaded.join(' + ') + ' Loaded. ':' None. '+ + addons.length? addons.join(' + ') + ' Loaded. ':' None. '+ skipped.length? skipped.join(' + ') + ' Skipped. ':''); // Append SocketStream middleware to stack