From 6c68b3151cd1ca4787e5e84020ebf2f273d84839 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 16 Jul 2018 17:54:59 -0400 Subject: [PATCH] maybe fix some windows errors --- src/core/create_routes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/create_routes.ts b/src/core/create_routes.ts index dea8d34..3605555 100644 --- a/src/core/create_routes.ts +++ b/src/core/create_routes.ts @@ -2,6 +2,7 @@ import * as fs from 'fs'; import * as path from 'path'; import { locations } from '../config'; import { Page, PageComponent, ServerRoute } from '../interfaces'; +import { posixify } from './utils'; const fallback_index = path.resolve( __dirname, @@ -49,7 +50,7 @@ export default function create_routes(cwd = locations.routes()) { return { basename, parts, - file, + file: posixify(file), is_dir, is_index, is_page