mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 03:25:24 +00:00
get tests passing again
This commit is contained in:
@@ -76,7 +76,7 @@ async function execute(emitter: EventEmitter, {
|
||||
if (serviceworker) {
|
||||
create_serviceworker_manifest({
|
||||
routes: route_objects,
|
||||
client_files: client_result.assets.map((chunk: { name: string }) => `client/${chunk.name}`)
|
||||
client_files: client_result.assets.map((file: string) => `client/${file}`)
|
||||
});
|
||||
|
||||
serviceworker_stats = await serviceworker.compile();
|
||||
|
||||
@@ -268,7 +268,7 @@ class Watcher extends EventEmitter {
|
||||
fs.writeFileSync(path.join(dest, 'client_assets.json'), JSON.stringify(result.assetsByChunkName, null, ' '));
|
||||
this.deferreds.client.fulfil();
|
||||
|
||||
const client_files = result.assets.map((chunk: { name: string }) => `client/${chunk.name}`);
|
||||
const client_files = result.assets.map((file: string) => `client/${file}`);
|
||||
|
||||
create_serviceworker_manifest({
|
||||
routes: create_routes(),
|
||||
|
||||
Reference in New Issue
Block a user