mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
[observatory] Include observatory main.dart.js.map with debug build.
Having this map file allows for the browser to report source line numbers in case of exception thrown by Observatory code. Change-Id: Ia47789b89b3a14ca6513143bf9d4cc9c4a8cc1fb Reviewed-on: https://dart-review.googlesource.com/68847 Reviewed-by: Zach Anderson <zra@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
parent
7eda513405
commit
9e9adcef57
|
@ -19,6 +19,9 @@ prebuilt_dart2js_action("build_observatory") {
|
||||||
outputs = [
|
outputs = [
|
||||||
output,
|
output,
|
||||||
]
|
]
|
||||||
|
if (is_debug) {
|
||||||
|
outputs += [ "$target_gen_dir/observatory/web/main.dart.js.map" ]
|
||||||
|
}
|
||||||
|
|
||||||
version_string = exec_script("../../tools/make_version.py",
|
version_string = exec_script("../../tools/make_version.py",
|
||||||
[
|
[
|
||||||
|
@ -60,7 +63,6 @@ observatory_ignore_patterns = [
|
||||||
"*.concat.js",
|
"*.concat.js",
|
||||||
"*.dart",
|
"*.dart",
|
||||||
"*.log",
|
"*.log",
|
||||||
"*.map",
|
|
||||||
"*.precompiled.js",
|
"*.precompiled.js",
|
||||||
"*.scriptUrls",
|
"*.scriptUrls",
|
||||||
"*_buildLogs*",
|
"*_buildLogs*",
|
||||||
|
@ -78,6 +80,10 @@ observatory_ignore_patterns = [
|
||||||
"webcomponents.*",
|
"webcomponents.*",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (!is_debug) {
|
||||||
|
observatory_ignore_patterns += [ "*.map" ]
|
||||||
|
}
|
||||||
|
|
||||||
# The ignore_patterns entry in the scopes accepted by copy_trees() is a
|
# The ignore_patterns entry in the scopes accepted by copy_trees() is a
|
||||||
# string of comma delimited patterns.
|
# string of comma delimited patterns.
|
||||||
observatory_ignore_string = "\$sdk"
|
observatory_ignore_string = "\$sdk"
|
||||||
|
@ -157,8 +163,11 @@ copy("copy_main_dart_js") {
|
||||||
sources = [
|
sources = [
|
||||||
"$target_gen_dir/observatory/web/main.dart.js",
|
"$target_gen_dir/observatory/web/main.dart.js",
|
||||||
]
|
]
|
||||||
|
if (is_debug) {
|
||||||
|
sources += [ "$target_gen_dir/observatory/web/main.dart.js.map" ]
|
||||||
|
}
|
||||||
outputs = [
|
outputs = [
|
||||||
"$target_out_dir/observatory/deployed/web/main.dart.js",
|
"$target_out_dir/observatory/deployed/web/{{source_file_part}}",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue