8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e381d4 commit bc23679Copy full SHA for bc23679
lib/services/webpack/webpack-compiler-service.ts
@@ -354,14 +354,16 @@ export class WebpackCompilerService
354
cwd: projectData.projectDir,
355
stdio,
356
};
357
-
+ options.env = {
358
+ NATIVESCRIPT_WEBPACK_ENV:JSON.stringify(envData)
359
+ }
360
if (this.$options.hostProjectPath) {
- options.env = {
361
+ Object.assign(options.env, {
362
USER_PROJECT_PLATFORMS_ANDROID: this.$options.hostProjectPath,
363
USER_PROJECT_PLATFORMS_ANDROID_MODULE:
364
this.$options.hostProjectModuleName,
365
USER_PROJECT_PLATFORMS_IOS: this.$options.hostProjectPath,
- };
366
+ });
367
}
368
369
const childProcess = this.$childProcess.spawn(
0 commit comments