Skip to content

Commit 24e376a

Browse files
authoredMar 26, 2024··
fix(sourcemap): don't warn even if the sourcesContent is an empty string (#16273)
1 parent 7caef42 commit 24e376a

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
@@ -44,7 +44,7 @@ export async function injectSourcesContent(
4444
for (let index = 0; index < map.sources.length; index++) {
4545
const sourcePath = map.sources[index]
4646
if (
47-
!sourcesContent[index] &&
47+
sourcesContent[index] == null &&
4848
sourcePath &&
4949
!virtualSourceRE.test(sourcePath)
5050
) {

0 commit comments

Comments
 (0)
Please sign in to comment.