mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
add support for the builders configuration for web (#50988)
This commit is contained in:
parent
6d0b1ef868
commit
dda7a618ec
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user