Merge pull request #577 from AllenYu0118/patch-1
fix: The build error Module parse failed
This commit is contained in:
commit
73166332c5
|
|
@ -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]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue