Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
fix: fix filtering for src imports in resolveId
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 27, 2020
1 parent ccdb1ff commit 7dd895d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ export default function PluginVue(userOptions: Partial<Options> = {}): Plugin {
// map src request to the importer vue file descriptor
const [filename] = id.split('?', 2)
cache.set(filename, getDescriptor(importer!))
} else if (!filter(query.filename)) {
return undefined
}
if (!filter(query.filename)) return undefined
debug(`resolveId(${id})`)
return id
}
Expand Down

0 comments on commit 7dd895d

Please sign in to comment.