File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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>" ,
Original file line number Diff line number Diff line change 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')
294295const fireAfterUpdate = ( ) => fireGlobal ( 'afterupdate' )
295296
296297if ( 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
303304let fatalError = false
You can’t perform that action at this time.
0 commit comments