File tree 1 file changed +2
-1
lines changed
packages/vite/src/node/server
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import convertSourceMap from 'convert-source-map'
4
4
import type { ExistingRawSourceMap , SourceMap } from 'rollup'
5
5
import type { Logger } from '../logger'
6
6
import { blankReplacer , createDebugger } from '../utils'
7
+ import { cleanUrl } from '../../shared/utils'
7
8
8
9
const debug = createDebugger ( 'vite:sourcemap' , {
9
10
onlyWhenFocused : true ,
@@ -53,7 +54,7 @@ export async function injectSourcesContent(
53
54
// inject content from source file when sourcesContent is null
54
55
sourceRootPromise ??= computeSourceRoute ( map , file )
55
56
const sourceRoot = await sourceRootPromise
56
- let resolvedSourcePath = decodeURI ( sourcePath )
57
+ let resolvedSourcePath = cleanUrl ( decodeURI ( sourcePath ) )
57
58
if ( sourceRoot ) {
58
59
resolvedSourcePath = path . resolve ( sourceRoot , resolvedSourcePath )
59
60
}
You can’t perform that action at this time.
0 commit comments