Skip to content

Commit

Permalink
feat: updated with better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Jul 25, 2022
1 parent 45f3457 commit 717efbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importMetaGlob.ts
Expand Up @@ -187,7 +187,7 @@ export async function parseImportGlob(
} else if (element.type === 'TemplateLiteral') {
if (element.expressions.length !== 0) {
throw err(
`Expected glob to be a string, but got contains expressions`
`Expected glob to be a string, but got dynamic template literal`
)
}
globs.push(element.quasis[0].value.raw)
Expand Down

0 comments on commit 717efbb

Please sign in to comment.