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:
David Taylor 2022-02-11 20:38:53 +00:00 committed by GitHub
parent 6a41ec179c
commit 8025768fd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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