refactor(ivy): ngcc - remove formatProperty from EntryPointBundle (#32052)

Remove the `formatProperty` property from the `EntryPointBundle`
interface, because the property is not directly related to that type.

It was only used in one place, when calling `fileWriter.writeBundle()`,
but we can pass `formatProperty` directrly to `writeBundle()`.

PR Close #32052
This commit is contained in:
George Kalpakas
2019-08-08 02:19:52 +03:00
committed by Alex Rickabaugh
parent ef12e10e59
commit ed70f73794
19 changed files with 194 additions and 155 deletions

View File

@ -166,13 +166,12 @@ export function mainNgcc(
}
const bundle = makeEntryPointBundle(
fileSystem, entryPoint, formatPath, isCore, formatProperty, format, processDts,
pathMappings, true);
fileSystem, entryPoint, formatPath, isCore, format, processDts, pathMappings, true);
logger.info(`Compiling ${entryPoint.name} : ${formatProperty} as ${format}`);
const transformedFiles = transformer.transform(bundle);
fileWriter.writeBundle(entryPoint, bundle, transformedFiles);
fileWriter.writeBundle(entryPoint, bundle, transformedFiles, formatProperty);
onTaskCompleted(task, TaskProcessingOutcome.Processed);
};