Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d605750

Browse files
committed
Adding DDC/legacy module system targets to web SDK artifacts.
1 parent c25cc65 commit d605750

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

web_sdk/BUILD.gn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,14 @@ template("_compile_ddc_modules") {
362362
amd_js_path =
363363
"$root_out_dir/flutter_web_sdk/kernel/amd${name_suffix}/dart_sdk.js"
364364

365+
ddc_js_path =
366+
"$root_out_dir/flutter_web_sdk/kernel/ddc${name_suffix}/dart_sdk.js"
367+
365368
outputs = [
366369
amd_js_path,
367370
amd_js_path + ".map",
371+
ddc_js_path,
372+
ddc_js_path + ".map",
368373
]
369374

370375
if (invoker.sound_null_safety) {
@@ -402,6 +407,10 @@ template("_compile_ddc_modules") {
402407
"amd",
403408
"-o",
404409
rebase_path(amd_js_path),
410+
"--modules",
411+
"ddc",
412+
"-o",
413+
rebase_path(ddc_js_path),
405414
]
406415
if (flutter_prebuilt_dart_sdk) {
407416
args += [

0 commit comments

Comments
 (0)