Merge pull request #577 from AllenYu0118/patch-1

fix: The build error Module parse failed
This commit is contained in:
Evan Xu 2022-04-13 10:37:15 +08:00 committed by GitHub
commit 73166332c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export function normalize(path) {
}
export function getHash(path) {
const match = path ? path.match(hashRE) : ''
const match = path && path.match(hashRE)
if (match) {
return match[0]
}