Skip to content

Commit

Permalink
Update: Remove commented debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 17, 2017
1 parent 5871c2d commit b26b013
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ function loadSourceMap(file, state, options, callback) {

function onRead(err, data) {
if (err) {
// console.log(err);
// if (options.debug) {
// console.log(PLUGIN_NAME + '-add: Can\'t read map file :' + mapFile);
// }
return callback();
}
state.map = parse(data);
Expand Down Expand Up @@ -106,9 +102,6 @@ function fixImportedSourceMap(file, state, options, callback) {

if (absPath !== file.path) {
// load content from file async
// if (options.debug) {
// console.log(PLUGIN_NAME + '-add: No source content for "' + source + '". Loading from file.');
// }
return fs.readFile(absPath, 'utf8', onRead);
}

Expand All @@ -118,9 +111,6 @@ function fixImportedSourceMap(file, state, options, callback) {

function onRead(err, data) {
if (err) {
// if (options.debug) {
// console.warn(PLUGIN_NAME + '-add: source file not found: ' + absPath);
// }
assignSourcesContent(null, idx);
return cb();
}
Expand Down Expand Up @@ -249,16 +239,10 @@ function includeContent(file, state, options, callback) {

var basePath = state.sourceMap.sourceRoot || file.base;
var absPath = path.resolve(basePath, sourcePath);
// if (options.debug) {
// console.log(PLUGIN_NAME + '-write: No source content for "' + sourceMap.sources[i] + '". Loading from file.');
// }
fs.readFile(absPath, 'utf8', onRead);

function onRead(err, data) {
if (err) {
// if (options.debug) {
// console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath);
// }
return cb();
}
state.sourceMap.sourcesContent[idx] = stripBom(data);
Expand Down

0 comments on commit b26b013

Please sign in to comment.