How to use the @haul-bundler/core.parseEntry function in @haul-bundler/core

To help you get started, we’ve selected a few @haul-bundler/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github callstack / haul / packages / haul-cli / src / messages / multiBundleMessages.ts View on Github external
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')
    )}`
  );
}
github callstack / haul / packages / haul-cli / src / messages / bundleMessages.ts View on Github external
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)
    )}`
  );
}