Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into gh-325
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 3, 2018
2 parents 3a66f2a + d386308 commit 7d7370f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# sapper changelog

## 0.15.5

* Faster `export` with more explanatory output ([#335](https://github.com/sveltejs/sapper/pull/335))
* Only blur `activeElement` if it exists ([#332](https://github.com/sveltejs/sapper/issues/332))
* Don't emit `client_info.json` or `server_info.json` ([#318](https://github.com/sveltejs/sapper/issues/318))

## 0.15.4

* Add `ignore` option ([#326](https://github.com/sveltejs/sapper/pull/326))
Expand Down
1 change: 0 additions & 1 deletion src/api/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ async function execute(emitter: EventEmitter, {
});

const client_info = client_stats.toJson();
fs.writeFileSync(path.join(dest, 'client_info.json'), JSON.stringify(client_info));
fs.writeFileSync(path.join(dest, 'client_assets.json'), JSON.stringify(client_info.assetsByChunkName));

const server_stats = await compile(server);
Expand Down
3 changes: 0 additions & 3 deletions src/api/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ class Watcher extends EventEmitter {
},

result: info => {
fs.writeFileSync(path.join(dest, 'server_info.json'), JSON.stringify(info, null, ' '));

this.deferreds.client.promise.then(() => {
const restart = () => {
log = '';
Expand Down Expand Up @@ -253,7 +251,6 @@ class Watcher extends EventEmitter {
},

result: info => {
fs.writeFileSync(path.join(dest, 'client_info.json'), JSON.stringify(info));
fs.writeFileSync(path.join(dest, 'client_assets.json'), JSON.stringify(info.assetsByChunkName, null, ' '));
this.deferreds.client.fulfil();

Expand Down
2 changes: 1 addition & 1 deletion src/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async function navigate(target: Target, id: number): Promise<any> {
await goto(redirect.location, { replaceState: true });
} else {
render(data, nullable_depth, scroll_history[id], token);
document.activeElement.blur();
if (document.activeElement) document.activeElement.blur();
}
}

Expand Down

0 comments on commit 7d7370f

Please sign in to comment.