identify leaf index.html components

This commit is contained in:
Rich Harris
2018-07-16 15:10:46 -04:00
parent 61e3b6c6a0
commit 7d3e191e46

View File

@@ -127,7 +127,7 @@ export default function create_routes(cwd = locations.routes()) {
return fs.existsSync(path.join(dir, item.basename, 'index.html'));
}
return item.is_page;
return other_item.is_page;
});
if (!is_branch) {