Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
runtime.logger.info(
`Bundle output: ${runtime.logger.enhanceWithColor(
'gray',
webpackConfig.output!.filename
)}`
);
runtime.logger.info(
`Bundle output (resolved): ${runtime.logger.enhanceWithColor(
'gray',
path.join(webpackConfig.output!.path!, webpackConfig.output!.filename!)
)}`
);
runtime.logger.info(
`Starting from:\n${runtime.logger.enhanceWithColor(
'gray',
((parseEntry(webpackConfig.entry!) as unknown) as string)
.split('\n')
.map((line: string) => `${' '.repeat(7)}${line}`)
.join('\n')
)}`
);
}
export function initialBundleInformation(
runtime: Runtime,
{ entry, dev }: { entry: webpack.Configuration['entry']; dev: boolean }
) {
const mode = dev ? 'development' : 'production';
runtime.logger.info(
`Haul is now bundling your React Native app in ${runtime.logger.enhanceWithModifier(
'bold',
mode
)} mode`
);
runtime.logger.info(
`Starting from:\n${runtime.logger.enhanceWithColor(
'gray',
parseEntry(entry)
)}`
);
}