We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b825238 commit 47882f7Copy full SHA for 47882f7
1 file changed
index.js
@@ -24,7 +24,7 @@ module.exports = function moduleLoadList() {
24
if (line.charAt(0) !== '.') line = './'+ line;
25
}
26
27
- line = line.split('/');
+ line = line.split('/').filter(Boolean);
28
if (line[line.length - 1] === 'index') line.pop();
29
if (!line.length) return;
30
0 commit comments