add support for the builders configuration for web (#50988)

This commit is contained in:
Jacob MacDonald 2020-02-19 19:01:04 -08:00 committed by GitHub
parent 6d0b1ef868
commit dda7a618ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View File

@ -194,7 +194,9 @@ class CodeGeneratingResidentCompiler implements ResidentCompiler {
}
@override
void addFileSystemRoot(String root) { }
void addFileSystemRoot(String root) {
_residentCompiler.addFileSystemRoot(root);
}
}
/// The current status of a codegen build.

View File

@ -110,13 +110,15 @@ class FlutterDevice {
experimentalFlags: experimentalFlags,
dartDefines: dartDefines,
);
if (flutterProject.hasBuilders) {
generator = await CodeGeneratingResidentCompiler.create(
residentCompiler: generator,
flutterProject: flutterProject,
);
}
}
if (flutterProject.hasBuilders) {
generator = await CodeGeneratingResidentCompiler.create(
residentCompiler: generator,
flutterProject: flutterProject,
);
}
return FlutterDevice(
device,
trackWidgetCreation: trackWidgetCreation,