Performance fixes for hot reload when using a prebuilt loader (#6821)

This commit is contained in:
John McCutchan
2016-11-11 13:28:21 -08:00
committed by GitHub
parent cccd917ac2
commit 45c95b261d
4 changed files with 36 additions and 4 deletions

View File

@@ -39,6 +39,7 @@ import 'src/devfs.dart';
import 'src/device.dart';
import 'src/doctor.dart';
import 'src/globals.dart';
import 'src/hot.dart';
import 'src/runner/flutter_command_runner.dart';
/// Main entry point for commands.
@@ -90,6 +91,8 @@ Future<Null> main(List<String> args) async {
context[DevFSConfig] = new DevFSConfig();
if (context[Doctor] == null)
context[Doctor] = new Doctor();
if (context[HotRunnerConfig] == null)
context[HotRunnerConfig] = new HotRunnerConfig();
dynamic result = await runner.run(args);
_exit(result is int ? result : 1);