ddcBuilder function
Builder
ddcBuilder(
- BuilderOptions options
Implementation
Builder ddcBuilder(BuilderOptions options) {
validateOptions(options.config, _supportedOptions, 'build_web_compilers:ddc');
_ensureSameDdcHotReloadOptions(options);
_ensureSameDdcOptions(options);
if (_readWebHotReloadOption(options)) {
return DdcFrontendServerBuilder();
}
return DevCompilerBuilder(
useIncrementalCompiler: _readUseIncrementalCompilerOption(options),
generateFullDill: _readGenerateFullDillOption(options),
emitDebugSymbols: _readEmitDebugSymbolsOption(options),
canaryFeatures: _readCanaryOption(options),
ddcModules: _readWebHotReloadOption(options),
sdkKernelPath: sdkDdcKernelPath,
trackUnusedInputs: _readTrackInputsCompilerOption(options),
platform: ddcPlatform,
environment: _readEnvironmentOption(options),
);
}