Restructure resident web runner usage to avoid SDK users that don't support dwds (#37815)
This commit is contained in:
@@ -10,6 +10,7 @@ import 'src/base/context.dart';
|
||||
// avoid introducing the dependency into google3. Not all build* packages
|
||||
// are synced internally.
|
||||
import 'src/build_runner/build_runner.dart';
|
||||
import 'src/build_runner/resident_web_runner.dart';
|
||||
import 'src/build_runner/web_compilation_delegate.dart';
|
||||
|
||||
import 'src/codegen.dart';
|
||||
@@ -46,6 +47,7 @@ import 'src/commands/upgrade.dart';
|
||||
import 'src/commands/version.dart';
|
||||
import 'src/runner/flutter_command.dart';
|
||||
import 'src/web/compile.dart';
|
||||
import 'src/web/web_runner.dart';
|
||||
|
||||
/// Main entry point for commands.
|
||||
///
|
||||
@@ -100,5 +102,8 @@ Future<void> main(List<String> args) async {
|
||||
// the build runner packages are not synced internally.
|
||||
CodeGenerator: () => const BuildRunner(),
|
||||
WebCompilationProxy: () => BuildRunnerWebCompilationProxy(),
|
||||
// The web runner is not supported internally because it depends
|
||||
// on dwds.
|
||||
WebRunnerFactory: () => DwdsWebRunnerFactory(),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user