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:
@@ -1,5 +1,9 @@
|
||||
# sapper changelog
|
||||
|
||||
## 0.15.1
|
||||
|
||||
* Prevent confusing error when no root layout is specified
|
||||
|
||||
## 0.15.0
|
||||
|
||||
* Nested routes (consult [migration guide](https://sapper.svelte.technology/guide#0-14-to-0-15) and docs on [layouts](https://sapper.svelte.technology/guide#layouts)) ([#262](https://github.com/sveltejs/sapper/issues/262))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sapper",
|
||||
"version": "0.15.0",
|
||||
"version": "0.15.1",
|
||||
"description": "Military-grade apps, engineered by Svelte",
|
||||
"main": "dist/middleware.ts.js",
|
||||
"bin": {
|
||||
|
||||
@@ -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