Wire up hot restart and incremental rebuilds for web (#33197)

This commit is contained in:
Jonah Williams
2019-05-29 09:49:16 -07:00
committed by GitHub
parent 27bdb11030
commit 52ae99682e
50 changed files with 873 additions and 189 deletions

View File

@@ -10,6 +10,8 @@ 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/web_compilation_delegate.dart';
import 'src/codegen.dart';
import 'src/commands/analyze.dart';
import 'src/commands/attach.dart';
@@ -42,6 +44,7 @@ import 'src/commands/update_packages.dart';
import 'src/commands/upgrade.dart';
import 'src/commands/version.dart';
import 'src/runner/flutter_command.dart';
import 'src/web/compile.dart';
/// Main entry point for commands.
///
@@ -94,5 +97,6 @@ Future<void> main(List<String> args) async {
// The build runner instance is not supported in google3 because
// the build runner packages are not synced internally.
CodeGenerator: () => const BuildRunner(),
WebCompilationProxy: () => BuildRunnerWebCompilationProxy(),
});
}