We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
virtual:
1 parent 4b587b0 commit c4aa28fCopy full SHA for c4aa28f
packages/vite/src/node/server/sourcemap.ts
@@ -12,7 +12,7 @@ const debug = createDebugger('vite:sourcemap', {
12
// Virtual modules should be prefixed with a null byte to avoid a
13
// false positive "missing source" warning. We also check for certain
14
// prefixes used for special handling in esbuildDepPlugin.
15
-const virtualSourceRE = /^(?:\0|dep:|browser-external:)/
+const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/
16
17
interface SourceMapLike {
18
sources: string[]
0 commit comments