mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 19:25:10 +00:00
maybe fix some windows errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user