mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix the output paths of the Web esbuild GN template (flutter/engine#50188)
This commit is contained in:
parent
336c5ca450
commit
a337919d34
@ -21,7 +21,9 @@ template("esbuild") {
|
||||
esbuild,
|
||||
invoker.entry_point,
|
||||
]
|
||||
outputs = [ invoker.output_bundle ]
|
||||
output_filename = get_path_info(invoker.entry_point, "file")
|
||||
output_path = "${invoker.output_bundle}/$output_filename"
|
||||
outputs = [ output_path ]
|
||||
absolute_output = rebase_path(invoker.output_bundle)
|
||||
args = [ rebase_path(esbuild, root_build_dir) ]
|
||||
if (defined(invoker.bundle) && invoker.bundle) {
|
||||
@ -32,7 +34,7 @@ template("esbuild") {
|
||||
}
|
||||
if (defined(invoker.sourcemap) && invoker.sourcemap) {
|
||||
args += [ "--sourcemap" ]
|
||||
outputs += [ invoker.output_bundle + ".map" ]
|
||||
outputs += [ output_path + ".map" ]
|
||||
}
|
||||
args += [
|
||||
"--outdir=$absolute_output",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user