File tree 1 file changed +2
-5
lines changed
packages/vite/src/node/server
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ async function loadAndTransform(
277
277
++ sourcesIndex
278
278
) {
279
279
const sourcePath = map . sources [ sourcesIndex ]
280
+ if ( ! sourcePath ) continue
280
281
281
282
const sourcemapPath = `${ mod . file } .map`
282
283
const ignoreList = config . server . sourcemapIgnoreList (
@@ -298,11 +299,7 @@ async function loadAndTransform(
298
299
// Rewrite sources to relative paths to give debuggers the chance
299
300
// to resolve and display them in a meaningful way (rather than
300
301
// with absolute paths).
301
- if (
302
- sourcePath &&
303
- path . isAbsolute ( sourcePath ) &&
304
- path . isAbsolute ( mod . file )
305
- ) {
302
+ if ( path . isAbsolute ( sourcePath ) && path . isAbsolute ( mod . file ) ) {
306
303
map . sources [ sourcesIndex ] = path . relative (
307
304
path . dirname ( mod . file ) ,
308
305
sourcePath ,
You can’t perform that action at this time.
0 commit comments