mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Print a warning if the generated source map failed to be applied
This commit is contained in:
@@ -840,8 +840,13 @@ _.extend(ClientTarget.prototype, {
|
||||
_.each(originals, function (file, name) {
|
||||
if (! file.sourceMap)
|
||||
return;
|
||||
newMap.applySourceMap(
|
||||
new sourcemap.SourceMapConsumer(file.sourceMap), name);
|
||||
try {
|
||||
newMap.applySourceMap(
|
||||
new sourcemap.SourceMapConsumer(file.sourceMap), name);
|
||||
} catch (err) {
|
||||
console.log("warn: failed to apply the source map for " +
|
||||
name.slice(0, name.length - 4));
|
||||
}
|
||||
});
|
||||
|
||||
self.css[0].setSourceMap(JSON.stringify(newMap));
|
||||
|
||||
Reference in New Issue
Block a user