From 7d3e191e463d8d140efad79c6f3848cb59e13263 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 16 Jul 2018 15:10:46 -0400 Subject: [PATCH] identify leaf index.html components --- src/core/create_routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/create_routes.ts b/src/core/create_routes.ts index 06728d9..dea8d34 100644 --- a/src/core/create_routes.ts +++ b/src/core/create_routes.ts @@ -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) {