mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Adding DDC module system targets to web SDK artifacts. (flutter/engine#47783)
This is part of an ongoing effort to replace DDC's module system in Flutter Web (for hot reload support). Side effects of this change include doubling the code generated by DDC whenever this build pathway is hit (until the full module system transition lands), but this shouldn't affect debug performance. We may be able to lock this behind a build flag if this is an issue. See related issue: https://github.com/dart-lang/sdk/issues/52361
This commit is contained in:
parent
eb072d8928
commit
6d345a5475
@ -363,9 +363,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) {
|
||||
@ -403,6 +408,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 += [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user