From 6a5818454f1abf5af56df267325cf24b07c968a0 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 21 Dec 2017 17:13:07 -0800 Subject: [PATCH] build: make umd.min.js source map paths relative (#21147) I'm not quite sure how to test this since we don't have any infrastructure for these kinds of tests. I did verify the fix manually though. Fixes #15740 PR Close #21147 --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index b22dcd923a..9709b8ec4f 100755 --- a/build.sh +++ b/build.sh @@ -206,7 +206,7 @@ minify() { base_file=$( basename "${file}" ) if [[ "${base_file}" =~ $regex && "${base_file##*.}" != "map" ]]; then local out_file=$(dirname "${file}")/${BASH_REMATCH[1]}.min.js - $UGLIFYJS -c --screw-ie8 --comments -o ${out_file} --source-map ${out_file}.map --source-map-include-sources ${file} + $UGLIFYJS -c --screw-ie8 --comments -o ${out_file} --source-map ${out_file}.map --prefix relative --source-map-include-sources ${file} fi done }