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

Function unprocessedFile

packages/compiler-cli/preprocessor/src/processor.ts:164–174  ·  view source on GitHub ↗

The result for a file with nothing to compile, whose output is its original text.

(s: MagicString)

Source from the content-addressed store, hash-verified

162
163/** The result for a file with nothing to compile, whose output is its original text. */
164function unprocessedFile(s: MagicString): ProcessedFile {
165 return {
166 magicString: s,
167 generateSourceMap: (options = {}) =>
168 s.generateMap({
169 ...options,
170 // Disable high resolution source maps, because they use a lot of memory.
171 hires: 'boundary',
172 }),
173 };
174}
175
176export function buildTcbTargets(
177 filePath: string,

Callers 1

processFileFunction · 0.85

Calls 1

generateMapMethod · 0.80

Tested by

no test coverage detected