File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import * as path from 'path' ;
6
6
import { URL } from 'url' ;
7
+ import { IFsUtils } from '../../common/fsUtils' ;
8
+ import { ILogger } from '../../common/logging' ;
7
9
import { fixDriveLetterAndSlashes , properResolve } from '../../common/pathUtils' ;
8
10
import { SourceMap } from '../../common/sourceMaps/sourceMap' ;
9
11
import {
@@ -14,8 +16,6 @@ import {
14
16
import { IUrlResolution } from '../../common/sourcePathResolver' ;
15
17
import * as urlUtils from '../../common/urlUtils' ;
16
18
import { ISourcePathResolverOptions , SourcePathResolverBase } from '../sourcePathResolver' ;
17
- import { IFsUtils } from '../../common/fsUtils' ;
18
- import { ILogger } from '../../common/logging' ;
19
19
20
20
interface IOptions extends ISourcePathResolverOptions {
21
21
basePath ?: string ;
@@ -91,7 +91,7 @@ export class NodeSourcePathResolver extends SourcePathResolverBase<IOptions> {
91
91
if ( ! path . isAbsolute ( url ) && this . options . basePath ) {
92
92
url = properResolve (
93
93
await getComputedSourceRoot (
94
- map . sourceRoot ,
94
+ this . rebaseRemoteToLocal ( map . sourceRoot ) ,
95
95
map . metadata . compiledPath ,
96
96
{ '/' : this . options . basePath } ,
97
97
moduleAwarePathMappingResolver ( this . fsUtils , map . metadata . compiledPath ) ,
You can’t perform that action at this time.
0 commit comments