webdev icon indicating copy to clipboard operation
webdev copied to clipboard

evaluate whether it is worth switching from build-runner to frontend-server

Open sigmundch opened this issue 3 years ago • 3 comments

As mentioned in https://github.com/dart-lang/sdk/issues/50664#issuecomment-1347089380 we may want to consider whether it makes sense for webdev to switch to use a front-end-server solution for all uses, and not just for flutter.

There are many open questions to consider:

  • analyze the tradeoffs between the two
  • how to support sourcegen?
  • how to centralize frontend server and expose it from the Dart SDK

sigmundch avatar Dec 15 '22 18:12 sigmundch

Related: https://github.com/dart-lang/webdev/issues/1591

If we switch to only using the FrontendServer (or even if we don't) I think it would make sense for the FrontendServer to be responsible for generating the necessary dill & JS files, instead of Flutter doing so.

elliette avatar Dec 20 '22 17:12 elliette

Related to issue #1827

This could have many potential benefits, such as improved performance and scalability. However, there are also trade-offs to consider, such as the added complexity of implementing and maintaining a front-end-server, and how it would impact the development workflow.

It is also important to consider how to support sourcegen, as well as how to centralize the front-end server and make it accessible from the Dart SDK.

anujcontractor avatar Jan 28 '23 16:01 anujcontractor

We should definitely look into this if it means we can remove the remaining uses of build_runner.

bkonyi avatar Oct 23 '24 17:10 bkonyi