mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Catch undefined
This commit is contained in:
committed by
Sashko Stubailo
parent
b08b8e219a
commit
aa8d701f76
@@ -325,6 +325,11 @@ var compileUnibuild = function (options) {
|
||||
};
|
||||
|
||||
var convertSourceMapPaths = function (sourcemap, f) {
|
||||
if (! sourcemap) {
|
||||
// Don't try to convert it if it doesn't exist
|
||||
return sourcemap;
|
||||
}
|
||||
|
||||
var srcmap = JSON.parse(sourcemap);
|
||||
srcmap.sources = _.map(srcmap.sources, f);
|
||||
return JSON.stringify(srcmap);
|
||||
|
||||
Reference in New Issue
Block a user