Skip to content

Commit

Permalink
wip: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Oct 24, 2024
1 parent d76ab27 commit ed4fff9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite-node/src/source-map-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import fs from 'node:fs'
import path from 'node:path'
import { originalPositionFor, TraceMap } from '@jridgewell/trace-mapping'
import { sourceMapCache } from './source-map-cache'
import { slash } from './utils'

// Only install once if called multiple times
let errorFormatterInstalled = false
Expand Down Expand Up @@ -168,6 +169,7 @@ function mapSourcePosition(position: OriginalMapping) {
if (!position.source) {
return position
}
position.source = slash(position.source)
let sourceMap = sourceMapCache[position.source]
if (!sourceMap) {
// Call the (overridable) retrieveSourceMap function to get the source map.
Expand Down

0 comments on commit ed4fff9

Please sign in to comment.