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:

committed by
Alex Rickabaugh

parent
ef12e10e59
commit
ed70f73794
@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user