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