mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(webpack): handle single appComponents env flag (#10401)
This commit is contained in:
committed by
GitHub
parent
d6478237ec
commit
0b5393d7bf
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user