Skip to content

Commit 47882f7

Browse files
committed
[fix] Missed a .filter(Boolean)
1 parent b825238 commit 47882f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function moduleLoadList() {
2424
if (line.charAt(0) !== '.') line = './'+ line;
2525
}
2626

27-
line = line.split('/');
27+
line = line.split('/').filter(Boolean);
2828
if (line[line.length - 1] === 'index') line.pop();
2929
if (!line.length) return;
3030

0 commit comments

Comments
 (0)