You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[tool][web] Remove redundant '--enable-experiment=record-use' flag from web compilers #190465
When compiling web targets (dart2js and dart2wasm) or running dry runs with the record-use feature flag enabled, flutter_tools explicitly passes --enable-experiment=record-use to the compiler.
Since record-use is now enabled by default in recent Dart SDK versions (Dart 3.14+), passing this experimental flag causes warning spam in console output during both regular web compilation and embedded Wasm dry-runs:
'record-use' is now enabled by default; this flag is no longer required."'record-use' is now enabled by default; this flag is no longer required."
Proposed Changes
Remove the unconditional injection of --enable-experiment=record-use in Dart2JSTarget.build and Dart2WasmTarget.build within lib/src/build_system/targets/web.dart.
Update unit tests in test/general.shard/build_system/targets/web_test.dart and web_dry_run_test.dart to remove the expected flag from FakeCommand arrays.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
fix(tool): remove redundant --enable-experiment=record-use flag
fix(tool): remove redundant --enable-experiment=record-use flag (flut…
Revert: fix(tool): remove redundant --enable-experiment=record-use fl…
reland(tool): remove redundant --enable-experiment=record-use flag (f…
github-actions commentedon Aug 18, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.