From 8025768fd2f53a2cc292c3d12e78bf5a48daad1f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 11 Feb 2022 20:38:53 +0000 Subject: [PATCH] DEV: Embed source content in JS sourcemaps (#15914) This removes the need for a further request for the 'original' source file, and brings our custom terser arguments in line with the ember-cli defaults --- lib/tasks/assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 9288fa499e7..10e19be30e9 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -113,7 +113,7 @@ def compress_node(from, to) base_source_map = assets_path + assets_additional_path cmd = <<~EOS - terser '#{assets_path}/#{from}' -m -c -o '#{to_path}' --source-map "base='#{base_source_map}',root='#{source_map_root}',url='#{source_map_url}'" + terser '#{assets_path}/#{from}' -m -c -o '#{to_path}' --source-map "base='#{base_source_map}',root='#{source_map_root}',url='#{source_map_url}',includeSources=true" EOS STDERR.puts cmd