diff --git a/CHANGELOG.md b/CHANGELOG.md index 9238c8bb3..ddc617dd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/src/api/build.ts b/src/api/build.ts index ce13168ee..d7910663c 100644 --- a/src/api/build.ts +++ b/src/api/build.ts @@ -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); diff --git a/src/api/dev.ts b/src/api/dev.ts index b4d4da69f..36a53da42 100644 --- a/src/api/dev.ts +++ b/src/api/dev.ts @@ -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 = ''; @@ -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(); diff --git a/src/runtime/index.ts b/src/runtime/index.ts index 74a8ef5c2..6146ad845 100644 --- a/src/runtime/index.ts +++ b/src/runtime/index.ts @@ -298,7 +298,7 @@ async function navigate(target: Target, id: number): Promise { await goto(redirect.location, { replaceState: true }); } else { render(data, nullable_depth, scroll_history[id], token); - document.activeElement.blur(); + if (document.activeElement) document.activeElement.blur(); } }