Skip to content

Commit 8ecb335

Browse files
authored
fix: fix source map path (#5583)
1 parent 5e9de51 commit 8ecb335

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/services/log-source-map-service.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,10 @@ export class LogSourceMapService implements Mobile.ILogSourceMapService {
202202
originalPosition.source &&
203203
originalPosition.source.replace("webpack:///", "");
204204
if (sourceFile) {
205-
if (!_.startsWith(sourceFile, NODE_MODULES_FOLDER_NAME)) {
205+
const appPath = projectData.getAppDirectoryRelativePath();
206+
if (!_.startsWith(sourceFile, NODE_MODULES_FOLDER_NAME) && !_.startsWith(sourceFile, appPath)) {
206207
sourceFile = path.join(
207-
projectData.getAppDirectoryRelativePath(),
208+
appPath,
208209
sourceFile
209210
);
210211
}

0 commit comments

Comments
 (0)