MCPcopy Create free account
hub / github.com/angular/angular / engineOptions

Function engineOptions

packages/compiler-cli/preprocessor/src/analyzer_loader.ts:91–94  ·  view source on GitHub ↗

Strips the loader-only keys from `options`, leaving exactly the engine's options.

(options: LoadAnalyzerOptions)

Source from the content-addressed store, hash-verified

89
90/** Strips the loader-only keys from `options`, leaving exactly the engine's options. */
91function engineOptions(options: LoadAnalyzerOptions): nga.AnalyzerOptions {
92 const {backend, nativeBinding, wasmBinding, hostFs, ngAnalyzeDir, useWasm, ...engine} = options;
93 return {...engine, optimize: options.optimize ?? true};
94}
95
96export interface LoadedAnalyzer {
97 analyzer: IAnalyzer;

Callers 2

constructNativeFunction · 0.85
constructWasmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected