Skip to content

Commit

Permalink
disabled source mapping URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
thepian committed Oct 24, 2015
1 parent f3e4363 commit e339cfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/client/bundler/index.js
Expand Up @@ -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';
}

};
Expand Down
6 changes: 3 additions & 3 deletions lib/socketstream.js
Expand Up @@ -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);
}
Expand All @@ -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
Expand Down

0 comments on commit e339cfa

Please sign in to comment.