Skip to content

Investigate and possibly use reset in the frontend server instead of recompile-restart to signal a hot restart #60010

@srujzs

Description

@srujzs

https://dart-review.googlesource.com/c/sdk/+/406200 adds a new instruction to the frontend server to differentiate recompiles that occur during a hot reload and those that occur during a hot restart. This is needed so that DDC can determine whether to throw errors related to a change that cannot be hot reloaded.

During review, a suggestion came up to perhaps use reset before a recompile to signal a hot restart. reset changes the incremental compiler so it outputs a full component. It isn't clear if we can split the full component back to its intended partial component in a way that won't break the JS bundler or DDC.

If we can, then we can reset in Flutter tools and avoid needing a recompile-restart.

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.cfe-frontend-serverFrontend server issues for the CFEweb-dev-compiler

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions