From 497a72440069e346391a60952f5fb03af040beaf Mon Sep 17 00:00:00 2001 From: Muka Schultze Date: Wed, 16 Jul 2025 14:19:06 -0300 Subject: [PATCH 1/2] fix: pass down process environment to webpack process --- lib/services/webpack/webpack-compiler-service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index 323899793a..c4f4c0c707 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -356,10 +356,8 @@ export class WebpackCompilerService }; options.env = { NATIVESCRIPT_WEBPACK_ENV: JSON.stringify(envData), + ...process.env, }; - if (this.$hostInfo.isWindows) { - Object.assign(options.env, { APPDATA: process.env.appData }); - } if (this.$options.hostProjectPath) { Object.assign(options.env, { USER_PROJECT_PLATFORMS_ANDROID: this.$options.hostProjectPath, From 17ee9dd2b02759dee26a88bcb3600381c31b45e4 Mon Sep 17 00:00:00 2001 From: Muka Schultze Date: Wed, 16 Jul 2025 14:22:58 -0300 Subject: [PATCH 2/2] revert windows check removal --- lib/services/webpack/webpack-compiler-service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/services/webpack/webpack-compiler-service.ts b/lib/services/webpack/webpack-compiler-service.ts index c4f4c0c707..34a805c8a1 100644 --- a/lib/services/webpack/webpack-compiler-service.ts +++ b/lib/services/webpack/webpack-compiler-service.ts @@ -358,6 +358,9 @@ export class WebpackCompilerService NATIVESCRIPT_WEBPACK_ENV: JSON.stringify(envData), ...process.env, }; + if (this.$hostInfo.isWindows) { + Object.assign(options.env, { APPDATA: process.env.appData }); + } if (this.$options.hostProjectPath) { Object.assign(options.env, { USER_PROJECT_PLATFORMS_ANDROID: this.$options.hostProjectPath,