Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function(done) {
var self = this;
var source = pieces.join('');
var inputMapCV = convert.fromSource(source);
var inputMap;
if (inputMapCV) {
inputMap = inputMapCV.toObject();
source = convert.removeComments(source);
}
reactHotLoader.call({
resourcePath: file,
callback: function(err, source, map) {
if (err) {
done(err);
} else {
if (map) {
source = source + '\n' + convert.fromJSON(map).toComment();
}
self.push(source);
done();
}
}
}, source, inputMap);
});
};