Skip to content

Commit

Permalink
fix: output correct error for empty import specifier (#16055)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Feb 29, 2024
1 parent 1dccc37 commit a9112eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/importAnalysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export function importAnalysisPlugin(config: ResolvedConfig): Plugin {

// static import or valid string in dynamic import
// If resolvable, let's resolve it
if (specifier) {
if (specifier !== undefined) {
// skip external / data uri
if (isExternalUrl(specifier) || isDataUrl(specifier)) {
return
Expand Down

0 comments on commit a9112eb

Please sign in to comment.