mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
@@ -131,7 +131,11 @@ _.extend(Module.prototype, {
|
||||
}); // results has 'code' and 'map' attributes
|
||||
}
|
||||
);
|
||||
const sourceMap = results.map.toJSON();
|
||||
|
||||
let sourceMap = results.map.toJSON();
|
||||
if (! sourceMap.mappings) {
|
||||
sourceMap = null;
|
||||
}
|
||||
|
||||
const prelinked = {
|
||||
source: results.code,
|
||||
@@ -199,6 +203,9 @@ _.extend(Module.prototype, {
|
||||
});
|
||||
result.source = swsm.code;
|
||||
result.sourceMap = swsm.map.toJSON();
|
||||
if (! result.sourceMap.mappings) {
|
||||
result.sourceMap = null;
|
||||
}
|
||||
} else {
|
||||
// If there were no files in this bundle, we do not need to
|
||||
// generate a source map.
|
||||
|
||||
Reference in New Issue
Block a user