-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] Enable hot reload on the web #169174
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
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