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
This commit is contained in:
parent
6a41ec179c
commit
8025768fd2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue