Skip to content

Commit c4aa28f

Browse files
authoredMar 16, 2023
fix: add virtual: to virtual module source map ignore (#12444)
1 parent 4b587b0 commit c4aa28f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/server/sourcemap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const debug = createDebugger('vite:sourcemap', {
1212
// Virtual modules should be prefixed with a null byte to avoid a
1313
// false positive "missing source" warning. We also check for certain
1414
// prefixes used for special handling in esbuildDepPlugin.
15-
const virtualSourceRE = /^(?:\0|dep:|browser-external:)/
15+
const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/
1616

1717
interface SourceMapLike {
1818
sources: string[]

0 commit comments

Comments
 (0)
Please sign in to comment.