mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-19 05:45:27 +00:00
Improve internal API
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { locations } from '../config';
|
||||
import { create_manifest_data } from '../core';
|
||||
|
||||
export function find_page(pathname: string, cwd = locations.routes()) {
|
||||
export function find_page(pathname: string, cwd = 'src/routes') {
|
||||
const { pages } = create_manifest_data(cwd);
|
||||
|
||||
for (let i = 0; i < pages.length; i += 1) {
|
||||
|
||||
Reference in New Issue
Block a user