Skip to content

Commit 5d71b6f

Browse files
committed
Return Array instead of null when getCurrentScriptUrl cannot find src
1 parent 1ffc393 commit 5d71b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hmr/hotModuleReplacement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getCurrentScriptUrl(moduleId) {
5252

5353
return function(fileMap) {
5454
if (!src) {
55-
return null;
55+
return [];
5656
}
5757

5858
const splitResult = src.split(/([^\\/]+)\.js$/);

0 commit comments

Comments
 (0)