Skip to content

Commit

Permalink
Update packages/vite/src/node/plugins/importMetaGlob.ts
Browse files Browse the repository at this point in the history
Co-authored-by: 翠 / green <green@sapphi.red>
  • Loading branch information
btea and sapphi-red authored Nov 22, 2024
1 parent d869760 commit 021d1d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importMetaGlob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export async function transformGlobImport(
let importQuery = options.query ?? ''

if (onlyKeys) {
objectProps.push(`${JSON.stringify(filePath)}: ''`)
objectProps.push(`${JSON.stringify(filePath)}: 0`)
return
}

Expand Down

0 comments on commit 021d1d3

Please sign in to comment.