ddcBuilder function

Builder ddcBuilder(
  1. BuilderOptions options
)

Implementation

Builder ddcBuilder(BuilderOptions options) {
  validateOptions(options.config, _supportedOptions, 'jaspr_web_compilers:ddc');
  _ensureSameDdcOptions(options);

  return DevCompilerBuilder(
    useIncrementalCompiler: _readUseIncrementalCompilerOption(options),
    generateFullDill: _readGenerateFullDillOption(options),
    emitDebugSymbols: _readEmitDebugSymbolsOption(options),
    canaryFeatures: _readCanaryOption(options),
    platformSdk: webSdkDir,
    sdkKernelPath: p.url.join('kernel', 'ddc_outline_sound.dill'),
    trackUnusedInputs: _readTrackInputsCompilerOption(options),
    platform: ddcPlatform,
    environment: _readEnvironmentOption(options),
    librariesPath: p.join(webSdkDir, 'libraries.json'),
  );
}