-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add experimental hot reload flag support to flutter tools #162889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
nshahan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for making this easier to enable!
|
autosubmit label was removed for flutter/flutter/162889, because This PR has not met approval requirements for merging. The PR author is not a member of flutter-hackers and needs 1 more review(s) in order to merge this PR.
|
srujzs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Nate! There are a few other spots we want this as well:
- packages/flutter_tools/test/web.shard/hot_reload_web_errors_test.dart
- packages/flutter_tools/test/web.shard/stateless_stateful_hot_reload_web_test.dart
And possibly
flutter/packages/flutter_tools/test/web.shard/test_data/hot_restart_web_test_common.dart
Line 77 in 5e646e2
| ? <String>['--extra-front-end-options=--dartdevc-canary,--dartdevc-module-format=ddc'] |
|
Sorry for the churn, but there's one more area we might want to use this:
We currently try to maintain the old behavior on AMD by forcing a full restart even if a reload was requested. edit: It looks like we never create an internal flag, so nothing to change here! |
Rather than ask users to pass the complicated and long string
--extra-front-end-options=--dartdevc-canary,--dartdevc-module-format=ddcwe want a simpler flag to enable the new DDC module system/hot reload.Technically this flag enables the new module system, not necessarily hot reload directly. But we only expect people to use the flag to enable hot reload so I've chosen the name based on that.