get tests passing again

This commit is contained in:
Rich Harris
2018-08-25 14:01:07 -04:00
parent 9cbb8bdc33
commit 200c5fcbd2
5 changed files with 5 additions and 7 deletions

View File

@@ -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;
}

View File

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