@@ -42,8 +42,8 @@ class DevCompilerBuilder implements Builder {
4242 /// Enables canary features in DDC.
4343 final bool canaryFeatures;
4444
45- /// Emits code with the DDC module system.
46- final bool ddcModules ;
45+ /// Emits code with the DDC Library Bundle module system.
46+ final bool ddcLibraryBundle ;
4747
4848 final bool trackUnusedInputs;
4949
@@ -74,7 +74,7 @@ class DevCompilerBuilder implements Builder {
7474 this .generateFullDill = false ,
7575 this .emitDebugSymbols = false ,
7676 this .canaryFeatures = false ,
77- this .ddcModules = false ,
77+ this .ddcLibraryBundle = false ,
7878 this .trackUnusedInputs = false ,
7979 required this .platform,
8080 String ? sdkKernelPath,
@@ -125,16 +125,16 @@ class DevCompilerBuilder implements Builder {
125125 await _createDevCompilerModule (
126126 module,
127127 buildStep,
128- useIncrementalCompiler,
129- generateFullDill,
130- emitDebugSymbols,
131- canaryFeatures,
132- ddcModules,
133- trackUnusedInputs,
134- platformSdk,
135- sdkKernelPath,
136- librariesPath,
137128 environment,
129+ useIncrementalCompiler: useIncrementalCompiler,
130+ generateFullDill: generateFullDill,
131+ emitDebugSymbols: emitDebugSymbols,
132+ canaryFeatures: canaryFeatures,
133+ ddcLibraryBundle: ddcLibraryBundle,
134+ trackUnusedInputs: trackUnusedInputs,
135+ dartSdk: platformSdk,
136+ sdkKernelPath: sdkKernelPath,
137+ librariesPath: librariesPath,
138138 );
139139 } on DartDevcCompilationException catch (e) {
140140 await handleError (e);
@@ -148,16 +148,16 @@ class DevCompilerBuilder implements Builder {
148148Future <void > _createDevCompilerModule (
149149 Module module,
150150 BuildStep buildStep,
151- bool useIncrementalCompiler,
152- bool generateFullDill,
153- bool emitDebugSymbols,
154- bool canaryFeatures,
155- bool ddcModules,
156- bool trackUnusedInputs,
157- String dartSdk,
158- String sdkKernelPath,
159- String librariesPath,
160151 Map <String , String > environment, {
152+ required bool useIncrementalCompiler,
153+ required bool generateFullDill,
154+ required bool emitDebugSymbols,
155+ required bool canaryFeatures,
156+ required bool ddcLibraryBundle,
157+ required bool trackUnusedInputs,
158+ required String dartSdk,
159+ required String sdkKernelPath,
160+ required String librariesPath,
161161 bool debugMode = true ,
162162}) async {
163163 final transitiveDeps = await buildStep.trackStage (
@@ -202,11 +202,11 @@ Future<void> _createDevCompilerModule(
202202 WorkRequest ()
203203 ..arguments.addAll ([
204204 '--dart-sdk-summary=$sdkSummary ' ,
205- '--modules=${ddcModules ? 'ddc' : 'amd' }' ,
205+ '--modules=${ddcLibraryBundle ? 'ddc' : 'amd' }' ,
206206 '--no-summarize' ,
207207 if (generateFullDill) '--experimental-output-compiled-kernel' ,
208208 if (emitDebugSymbols) '--emit-debug-symbols' ,
209- if (canaryFeatures) '--canary' ,
209+ if (canaryFeatures || ddcLibraryBundle ) '--canary' ,
210210 '-o' ,
211211 jsOutputFile.path,
212212 debugMode ? '--source-map' : '--no-source-map' ,
0 commit comments