dart-lang / webdev

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

Consolidate FrontendServerDdcStrategyProvider and FrontendServerRequireStrategyProvider Description #2517

Closed jyameo closed 1 week ago

jyameo commented 2 weeks ago

The classes FrontendServerDdcStrategyProvider and FrontendServerRequireStrategyProvider currently share a lot of common logic and fields. To improve maintainability and reduce redundancy, we should refactor these classes to inherit from a single parent class, FrontendServerStrategyProvider, which will contain shared methods and properties. Each class can then implement only the unique parts required for their respective strategies.