From 27af9705ddfc5735ab29aa763447958a98f0dc49 Mon Sep 17 00:00:00 2001 From: allenyu Date: Tue, 12 Apr 2022 22:56:24 +0800 Subject: [PATCH] fix: The build error Module parse failed close: #576 --- vdoing/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdoing/util/index.js b/vdoing/util/index.js index e5ba52b..a623585 100644 --- a/vdoing/util/index.js +++ b/vdoing/util/index.js @@ -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] }