Restructure resident web runner usage to avoid SDK users that don't support dwds (#37815)

This commit is contained in:
Jonah Williams
2019-08-08 16:36:27 -07:00
committed by GitHub
parent 41cc80c5be
commit f98df595f3
10 changed files with 79 additions and 28 deletions

View File

@@ -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(),
});
}