Skip to content

Commit

Permalink
fix: add virtual: to virtual module source map ignore (#12444)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Mar 16, 2023
1 parent 4b587b0 commit c4aa28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/sourcemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const debug = createDebugger('vite:sourcemap', {
// Virtual modules should be prefixed with a null byte to avoid a
// false positive "missing source" warning. We also check for certain
// prefixes used for special handling in esbuildDepPlugin.
const virtualSourceRE = /^(?:\0|dep:|browser-external:)/
const virtualSourceRE = /^(?:dep:|browser-external:|virtual:)|\0/

interface SourceMapLike {
sources: string[]
Expand Down

0 comments on commit c4aa28f

Please sign in to comment.