mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
-> v0.15.1
This commit is contained in:
@@ -62,7 +62,7 @@ function generate_client(
|
||||
|
||||
let code = `
|
||||
// This file is generated by Sapper — do not edit it!
|
||||
import root from '${posixify(`${path_to_routes}/${routes.root.file}`)}';
|
||||
import root from '${get_file(path_to_routes, routes.root)}';
|
||||
import error from '${posixify(`${path_to_routes}/_error.html`)}';
|
||||
|
||||
${routes.components.map(component =>
|
||||
@@ -124,7 +124,7 @@ function generate_server(
|
||||
`import * as ${route.name} from '${posixify(`${path_to_routes}/${route.file}`)}';`),
|
||||
routes.components.map(component =>
|
||||
`import ${component.name} from '${get_file(path_to_routes, component)}';`),
|
||||
`import root from '${posixify(`${path_to_routes}/${routes.root.file}`)}';`,
|
||||
`import root from '${get_file(path_to_routes, routes.root)}';`,
|
||||
`import error from '${posixify(`${path_to_routes}/_error.html`)}';`
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user