[flutter_tools] Enable hot reload on the web#169174
[flutter_tools] Enable hot reload on the web#169174auto-submit[bot] merged 22 commits intoflutter:masterfrom
Conversation
Update the defaults so hot reload is enabled on web development builds by default. This enables the use of a new module representation in the compiled JavaScript. Passing `--no-web-experimental-hot-reload` will disable the ability to hot reload and return to the AMD JavaScript module representation.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
In the future, it would be great if you could give the Flutter ecosystem team ( |
|
@stuartmorgan-g Thanks for bringing this issue and these channels to my attention. Were meeting today to work out a hopefully quick resolution. Our aim is to fix the |
To clarify, flutter/packages runs against Flutter |
* To be published with the release of 3.35.0. * The feature is now enabled by default on the web flutter/flutter#169174. * Updates "how to enable" instructions into "how to disable". Previews: * https://flutter-docs-prod--pr12216-hot-reload-web-docs-qhvj2eu0.web.app/platform-integration/web/building * https://flutter-docs-prod--pr12216-hot-reload-web-docs-qhvj2eu0.web.app/tools/hot-reload --------- Co-authored-by: Parker Lougheed <[email protected]> Co-authored-by: Amanda Fitch <[email protected]>
[flutter_tools] Enable hot reload on the web
Update the defaults so hot reload is enabled on web development builds by default.
This enables the use of a new module representation in the compiled JavaScript.
Passing
--no-web-experimental-hot-reloadwill disable the ability to hot reloadand return to the AMD JavaScript module representation.
This change avoids enabling hot reload in the flutter drive tests since they rely on
-d web-serverwhich has known startup issues. When dart-lang/sdk#60289 isresolved it should be safe to enable hot reload by default for the
flutter drivetests.
Fixes: #167510