Skip to content

Commit 866e9a7

Browse files
committed
Merge branch 'v0.13' & bump v0.14.4
2 parents 3f680da + 101046f commit 866e9a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-hmr",
3-
"version": "0.14.3",
3+
"version": "0.14.4",
44
"description": "Bundler agnostic HMR utils for Svelte 3",
55
"main": "index.js",
66
"author": "rixo <rixo@rixo.fr>",

runtime/proxy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env browser */
12
/**
23
* The HMR proxy is a component-like object whose task is to sit in the
34
* component tree in place of the proxied component, and rerender each
@@ -294,10 +295,10 @@ const fireBeforeUpdate = () => fireGlobal('beforeupdate')
294295
const fireAfterUpdate = () => fireGlobal('afterupdate')
295296

296297
if (typeof window !== 'undefined') {
297-
// eslint-disable-next-line no-undef
298298
window.__SVELTE_HMR = {
299299
on: onGlobal,
300300
}
301+
window.dispatchEvent(new CustomEvent('svelte-hmr:ready'))
301302
}
302303

303304
let fatalError = false

0 commit comments

Comments
 (0)