add support for the builders configuration for web (#50988)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user