Skip to content

Commit

Permalink
fix: fix source map path (#5583)
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug authored Sep 30, 2021
1 parent 5e9de51 commit 8ecb335
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/services/log-source-map-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 8ecb335

Please sign in to comment.