From 060550517fea0efb5f8075e5b40495188bc28de1 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Mon, 15 Jan 2024 10:04:06 +0100 Subject: [PATCH 1/2] [fix]: provide appId to webpack config --- lib/services/webpack/webpack-compiler-service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 4590fbc895..9c15306263 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -361,11 +361,13 @@ export class WebpackCompilerService const { env } = prepareData; const envData = Object.assign({}, env, { [platform.toLowerCase()]: true }); + const appId = projectData.projectId; const appPath = projectData.getAppDirectoryRelativePath(); const appResourcesPath = projectData.getAppResourcesRelativeDirectoryPath(); Object.assign( envData, + appId && { appId }, appPath && { appPath }, appResourcesPath && { appResourcesPath }, { From ed1aac7620e9c4ac24c8fb345fb65813b375e6db Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Mon, 15 Jan 2024 11:27:38 +0100 Subject: [PATCH 2/2] Update webpack-compiler-service.ts --- lib/services/webpack/webpack-compiler-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 9c15306263..205aa8faea 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -361,7 +361,7 @@ export class WebpackCompilerService const { env } = prepareData; const envData = Object.assign({}, env, { [platform.toLowerCase()]: true }); - const appId = projectData.projectId; + const appId = projectData.projectIdentifiers[platform]; const appPath = projectData.getAppDirectoryRelativePath(); const appResourcesPath = projectData.getAppResourcesRelativeDirectoryPath();