fix: The build error Module parse failed

close: #576
This commit is contained in:
allenyu 2022-04-12 22:56:24 +08:00 committed by GitHub
parent 755e30211c
commit 27af9705dd
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?.match(hashRE)
const match = path && path.match(hashRE)
if (match) {
return match[0]
}