added hasOwnProperty check to avoid warnings
This commit is contained in:
@@ -114,7 +114,9 @@ exports.minify = function(files, options) {
|
|||||||
});
|
});
|
||||||
if (options.sourceMapIncludeSources) {
|
if (options.sourceMapIncludeSources) {
|
||||||
for (var file in sourcesContent) {
|
for (var file in sourcesContent) {
|
||||||
options.source_map.get().setSourceContent(file, sourcesContent[file]);
|
if (sourcesContent.hasOwnProperty(file)) {
|
||||||
|
options.source_map.get().setSourceContent(file, sourcesContent[file]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user