From 3f32a373e4e12be57d2e0e53b134507b28999f3d Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:07:04 -0800 Subject: [PATCH 1/2] Unminified DevTools build --- tool/lib/commands/build.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tool/lib/commands/build.dart b/tool/lib/commands/build.dart index 4ab853ed732..5420c7f6aaa 100644 --- a/tool/lib/commands/build.dart +++ b/tool/lib/commands/build.dart @@ -92,6 +92,8 @@ class BuildCommand extends Command { [ 'build', 'web', + // Enable default optimizations: https://dart.dev/tools/dart-compile#js + '--dart2js-optimization=O1', '--web-renderer', 'canvaskit', '--pwa-strategy=offline-first', From fe314db065f2f26947f772a0343de98331521564 Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:39:39 -0700 Subject: [PATCH 2/2] Update build release script as well --- tool/build_release.sh | 1 + tool/lib/commands/build.dart | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tool/build_release.sh b/tool/build_release.sh index ee87f97f56f..038dc5243fb 100755 --- a/tool/build_release.sh +++ b/tool/build_release.sh @@ -62,6 +62,7 @@ flutter pub get flutter build web \ --web-renderer canvaskit \ --pwa-strategy=offline-first \ + --dart2js-optimization=O1 \ --release \ --no-tree-shake-icons diff --git a/tool/lib/commands/build.dart b/tool/lib/commands/build.dart index 5420c7f6aaa..74db2b25a48 100644 --- a/tool/lib/commands/build.dart +++ b/tool/lib/commands/build.dart @@ -92,11 +92,11 @@ class BuildCommand extends Command { [ 'build', 'web', - // Enable default optimizations: https://dart.dev/tools/dart-compile#js - '--dart2js-optimization=O1', '--web-renderer', 'canvaskit', '--pwa-strategy=offline-first', + // Enable default optimizations: https://dart.dev/tools/dart-compile#js + '--dart2js-optimization=O1', if (buildMode != 'debug') '--$buildMode', '--no-tree-shake-icons', ],