mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 12:04:39 +00:00
get tests passing again
This commit is contained in:
@@ -17,7 +17,7 @@ export class CompileResult {
|
||||
duration: number;
|
||||
errors: CompileError[];
|
||||
warnings: CompileError[];
|
||||
assets: Array<{ name: string }>;
|
||||
assets: string[];
|
||||
assetsByChunkName: Record<string, string>;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ class WebpackResult extends CompileResult {
|
||||
|
||||
this.duration = info.time;
|
||||
|
||||
this.assets = info.assets.map((chunk: { name: string }) => `client/${chunk.name}`);
|
||||
this.assets = info.assets.map((chunk: { name: string }) => chunk.name);
|
||||
this.assetsByChunkName = info.assetsByChunkName;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,6 @@ function generate_client(
|
||||
const server_routes_to_ignore = routes.server_routes.filter(route =>
|
||||
!page_ids.has(route.pattern.toString()));
|
||||
|
||||
const len = Math.max(...routes.components.map(c => c.name.length));
|
||||
|
||||
let code = `
|
||||
// This file is generated by Sapper — do not edit it!
|
||||
import root from '${get_file(path_to_routes, routes.root)}';
|
||||
|
||||
Reference in New Issue
Block a user