Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'gray',
bundleConfig.external.bundlePath
)
);
if (bundleConfig.dll) {
runtime.logger.info(
'Manifest path',
runtime.logger.enhanceWithColor(
'gray',
bundleConfig.external.manifestPath
)
);
}
if (bundleConfig.external.copyBundle) {
const filename = getBundleFilename(
env,
projectConfig.templates,
projectConfig.bundles[bundleName]
);
// `bundleOutput` should be a directory, but for backward-compatibility,
// we also handle the case with a filename.
let bundleOutputDirectory = bundleConfig.root;
if (env.bundleOutput) {
bundleOutputDirectory =
path.extname(env.bundleOutput) === ''
? env.bundleOutput
: path.dirname(env.bundleOutput);
bundleOutputDirectory = path.isAbsolute(bundleOutputDirectory)
? bundleOutputDirectory
: path.join(bundleConfig.root, bundleOutputDirectory);
}
runtime,
{
...configOptions,
platform,
}
);
const apps = [];
const bundles = sortBundlesByDependencies(projectConfig);
let totalProgress = 0;
let bundlesBuilt = 0;
for (const bundleName of bundles) {
const bundleConfig = projectConfig.bundles[bundleName];
if (bundleConfig.external) {
const bundleFilename = getBundleFilename(
{
...configOptions,
platform,
},
projectConfig.templates,
bundleConfig
);
try {
fs.copyFileSync(
bundleConfig.external.bundlePath,
path.join(outputPath, bundleFilename)
);
runtime.logger.done(
`Copied external${
bundleConfig.dll ? ' DLL' : ''