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
174174
175175 Object . assign ( envData ,
176176 appPath && { appPath } ,
177- appResourcesPath && { appResourcesPath } ,
177+ appResourcesPath && { appResourcesPath }
178178 ) ;
179179
180180 envData . verbose = envData . verbose || this . $logger . isVerbose ( ) ;
181181 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 ;
182189
183190 if ( prepareData . env && ( prepareData . env . sourceMap === false || prepareData . env . sourceMap === 'false' ) ) {
184191 delete envData . sourceMap ;
You can’t perform that action at this time.
0 commit comments