From 8ecb33541cdf405f5769b7cfa7385423e512ae80 Mon Sep 17 00:00:00 2001 From: farfromrefuge Date: Thu, 30 Sep 2021 19:08:24 +0200 Subject: [PATCH] fix: fix source map path (#5583) --- lib/services/log-source-map-service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/services/log-source-map-service.ts b/lib/services/log-source-map-service.ts index 6fe68e6aa0..cd12f7c03b 100644 --- a/lib/services/log-source-map-service.ts +++ b/lib/services/log-source-map-service.ts @@ -202,9 +202,10 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService { originalPosition.source && originalPosition.source.replace("webpack:///", ""); if (sourceFile) { - if (!_.startsWith(sourceFile, NODE_MODULES_FOLDER_NAME)) { + const appPath = projectData.getAppDirectoryRelativePath(); + if (!_.startsWith(sourceFile, NODE_MODULES_FOLDER_NAME) && !_.startsWith(sourceFile, appPath)) { sourceFile = path.join( - projectData.getAppDirectoryRelativePath(), + appPath, sourceFile ); }