aboutsummaryrefslogtreecommitdiff
path: root/tools/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node.js')
-rw-r--r--tools/node.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/node.js b/tools/node.js
index 4bc8517b..1ae69da8 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -133,9 +133,14 @@ exports.minify = function(files, options) {
stream += "\n//# sourceMappingURL=" + options.outSourceMap;
}
+ var source_map = output.source_map;
+ if (source_map) {
+ source_map = source_map + "";
+ }
+
return {
code : stream + "",
- map : output.source_map + ""
+ map : source_map
};
};