File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -174,11 +174,18 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
174
174
175
175
Object . assign ( envData ,
176
176
appPath && { appPath } ,
177
- appResourcesPath && { appResourcesPath } ,
177
+ appResourcesPath && { appResourcesPath }
178
178
) ;
179
179
180
180
envData . verbose = envData . verbose || this . $logger . isVerbose ( ) ;
181
181
envData . production = envData . production || prepareData . release ;
182
+ // The snapshot generation is wrongly located in the Webpack plugin.
183
+ // It should be moved in the Native Prepare of the CLI or a Gradle task in the Runtime.
184
+ // As a workaround, we skip the mksnapshot, xxd and android-ndk calls based on skipNativePrepare.
185
+ // In this way the plugin will prepare only the snapshot JS entry without any native prepare and
186
+ // we will able to execute cloud builds with snapshot without having any local snapshot or Docker setup.
187
+ // TODO: Remove this flag when we remove the native part from the plugin.
188
+ envData . skipSnapshotTools = prepareData . nativePrepare && prepareData . nativePrepare . skipNativePrepare ;
182
189
183
190
if ( prepareData . env && ( prepareData . env . sourceMap === false || prepareData . env . sourceMap === 'false' ) ) {
184
191
delete envData . sourceMap ;
You can’t perform that action at this time.
0 commit comments