Please review changes against upstream code using SCM,
see the Vcs-* tags in debian/control for its location.

--- dygraphs-2.2.0.orig/scripts/build-js.sh
+++ dygraphs-2.2.0/scripts/build-js.sh
@@ -85,9 +85,14 @@ browserify \
     --debug \
     LICENCE.js \
     tests5/tests/*.js \
-    >tests.js
+    >tests.tmp.js
 rm -rf src
 ../scripts/smap-out.py dygraph.tmp.js dygraph.js dygraph.js.map
+../scripts/smap-out.py tests.tmp.js tests.tmp2.js tests.tmp.map
+jq 'del(.sourcesContent)' <tests.tmp.map | perl -MCwd -pe \
+    's!"((?:\.\./)+)!Cwd::realpath($1) eq "/" ? "\"/" : $&!e;' \
+    >tests.tmp2.map
+../scripts/smap-in.py tests.tmp2.js tests.tmp2.map tests.js #--nonl
 
 # bundle and minify dygraph.min.js{,.map} with prod env
 cp -r es5 src
