dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 74 forks source link

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

Open sigmundch opened 1 year ago

sigmundch commented 1 year ago

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:

elliette commented 1 year ago

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.

anujcontractor commented 1 year ago

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.