We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
findSourceMapURL
1 parent 604c3a2 commit 3f0cef5Copy full SHA for 3f0cef5
packages/plugin-rsc/src/plugins/find-source-map-url.ts
@@ -6,6 +6,7 @@ import {
6
type ViteDevServer,
7
} from 'vite'
8
import fs from 'node:fs'
9
+import { slash } from './vite-utils'
10
11
//
12
// support findSourceMapURL
@@ -52,7 +53,7 @@ async function findSourceMapURL(
52
53
): Promise<object | undefined> {
54
// this is likely server external (i.e. outside of Vite processing)
55
if (filename.startsWith('file://')) {
- filename = fileURLToPath(filename)
56
+ filename = slash(fileURLToPath(filename))
57
if (
58
isFileLoadingAllowed(server.config, filename) &&
59
fs.existsSync(filename)
0 commit comments