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

Function compile

packages/compiler-cli/preprocessor/test/import_hoisting_spec.ts:230–240  ·  view source on GitHub ↗
(files: TestFile[])

Source from the content-addressed store, hash-verified

228};
229
230async function compile(files: TestFile[]): Promise<Map<string, string>> {
231 const tsconfig: TestFile = {
232 path: '/tsconfig.json',
233 content: JSON.stringify({
234 compilerOptions: {strict: true},
235 files: files.map((f) => f.path),
236 }),
237 };
238 const outputs = await runPipeline([tsconfig, ...files], {optimize: false, format: false});
239 return new Map(outputs.map((o) => [o.path, o.content]));
240}
241
242/**
243 * The file's top-level statements, reduced to a recognisable prefix, in emitted order. Generated

Callers 1

Calls 2

runPipelineFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected