Skip to content

Commit

Permalink
Adding DDC/legacy module system targets to web SDK artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markzipan committed Nov 28, 2023
1 parent c25cc65 commit d605750
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web_sdk/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,14 @@ template("_compile_ddc_modules") {
amd_js_path =
"$root_out_dir/flutter_web_sdk/kernel/amd${name_suffix}/dart_sdk.js"

ddc_js_path =
"$root_out_dir/flutter_web_sdk/kernel/ddc${name_suffix}/dart_sdk.js"

outputs = [
amd_js_path,
amd_js_path + ".map",
ddc_js_path,
ddc_js_path + ".map",
]

if (invoker.sound_null_safety) {
Expand Down Expand Up @@ -402,6 +407,10 @@ template("_compile_ddc_modules") {
"amd",
"-o",
rebase_path(amd_js_path),
"--modules",
"ddc",
"-o",
rebase_path(ddc_js_path),
]
if (flutter_prebuilt_dart_sdk) {
args += [
Expand Down

0 comments on commit d605750

Please sign in to comment.