-> v0.15.1

This commit is contained in:
Rich Harris
2018-07-22 21:25:33 -04:00
parent d0bb728e25
commit 39eb3be01e
3 changed files with 7 additions and 3 deletions

View File

@@ -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`)}';`
);