refactor(ivy): ngcc - pass whole entry-point object to makeEntryPointBundle() (#30591)

This simplifies the interface somewhat but also allows us to make use of
other properties of the EntryPoint object in the future.

PR Close #30591
This commit is contained in:
Pete Bacon Darwin
2019-05-25 17:44:18 +01:00
committed by Kara Erickson
parent 2dfd97d8f0
commit a94bdc6793
4 changed files with 26 additions and 19 deletions

View File

@ -154,8 +154,7 @@ export function mainNgcc(
// the property as processed even if its underlying format has been built already.
if (!compiledFormats.has(formatPath) && (compileAllFormats || isFirstFormat)) {
const bundle = makeEntryPointBundle(
fileSystem, entryPoint.path, formatPath, entryPoint.typings, isCore, property, format,
processDts, pathMappings);
fileSystem, entryPoint, formatPath, isCore, property, format, processDts, pathMappings);
if (bundle) {
logger.info(`Compiling ${entryPoint.name} : ${property} as ${format}`);
const transformedFiles = transformer.transform(bundle);