Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} catch (err) {
logger.warn(
`Could not load source file "${source}" in source map of "${
this.relativeName
}".`
);
}
})
);
this.sourceMap.sourcesContent = this.sourceMap.sourcesContent.concat(
contents
);
}
} catch (e) {
logger.warn(
`Could not load existing sourcemap of "${this.relativeName}".`
);
}
}
}
missingSources.map(async source => {
try {
let sourceFile = path.join(
path.dirname(filename),
this.sourceMap.sourceRoot || '',
source
);
let result = await fs.readFile(sourceFile, 'utf8');
this.addDependency(sourceFile, {includedInParent: true});
return result;
} catch (err) {
logger.warn(
`Could not load source file "${source}" in source map of "${
this.relativeName
}".`
);
}
})
);