Skip to content

Commit a54296e

Browse files
garymathewsewanharris
authored andcommitted
fix(android): correctly process bootstrap paths
1 parent 805722e commit a54296e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/lib/tasks/process-js-task.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class ProcessJsTask extends IncrementalFileTask {
257257
thrownewError(`Unable to resolve relative path for ${filePathAndName}.`);
258258
}
259259

260-
constbootstrapPath=file.substr(0,file.length-3);// Remove the ".js" extension.
260+
constbootstrapPath=file.substr(0,file.length-3).replace(/\\/g,'/');// Remove the ".js" extension.
261261
if(bootstrapPath.endsWith('.bootstrap')&&!this.jsBootstrapFiles.includes(bootstrapPath)){
262262
this.jsBootstrapFiles.push(bootstrapPath);
263263
}
@@ -366,7 +366,7 @@ class ProcessJsTask extends IncrementalFileTask {
366366
*/
367367
asynchandleDeletedFile(filePathAndName){
368368
letfile=this.resolveRelativePath(filePathAndName,this.data.jsFiles);
369-
constbootstrapPath=file.substr(0,file.length-3);// Remove the ".js" extension.
369+
constbootstrapPath=file.substr(0,file.length-3).replace(/\\/g,'/');// Remove the ".js" extension.
370370
if(bootstrapPath.endsWith('.bootstrap')){
371371
constindex=this.jsBootstrapFiles.indexOf(bootstrapPath);
372372
if(index!==-1){

0 commit comments

Comments
 (0)
close