fix(webpack): handle single appComponents env flag (#10401)

This commit is contained in:
Michael DeGiovanni
2023-10-09 22:24:57 +02:00
committed by GitHub
parent d6478237ec
commit 0b5393d7bf

View File

@@ -104,7 +104,7 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
// Add android app components to the bundle to SBG can generate the java classes
if (platform === 'android') {
const appComponents = env.appComponents || [];
const appComponents = Array.isArray(env.appComponents) ? env.appComponents : env.appComponents && [env.appComponents] || [];
appComponents.push('@nativescript/core/ui/frame');
appComponents.push('@nativescript/core/ui/frame/activity');
appComponents.map((component) => {