Skip to content

Commit

Permalink
fix(sourcemap): don't warn even if the sourcesContent is an empty str…
Browse files Browse the repository at this point in the history
…ing (#16273)
  • Loading branch information
sapphi-red authored Mar 26, 2024
1 parent 7caef42 commit 24e376a
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 @@ -44,7 +44,7 @@ export async function injectSourcesContent(
for (let index = 0; index < map.sources.length; index++) {
const sourcePath = map.sources[index]
if (
!sourcesContent[index] &&
sourcesContent[index] == null &&
sourcePath &&
!virtualSourceRE.test(sourcePath)
) {
Expand Down

0 comments on commit 24e376a

Please sign in to comment.