mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-18 21:45:12 +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 * as path from 'path';
|
||||||
import { locations } from '../config';
|
import { locations } from '../config';
|
||||||
import { Page, PageComponent, ServerRoute } from '../interfaces';
|
import { Page, PageComponent, ServerRoute } from '../interfaces';
|
||||||
|
import { posixify } from './utils';
|
||||||
|
|
||||||
const fallback_index = path.resolve(
|
const fallback_index = path.resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
@@ -49,7 +50,7 @@ export default function create_routes(cwd = locations.routes()) {
|
|||||||
return {
|
return {
|
||||||
basename,
|
basename,
|
||||||
parts,
|
parts,
|
||||||
file,
|
file: posixify(file),
|
||||||
is_dir,
|
is_dir,
|
||||||
is_index,
|
is_index,
|
||||||
is_page
|
is_page
|
||||||
|
|||||||
Reference in New Issue
Block a user