File tree 2 files changed +4
-4
lines changed
sites/svelte-5-preview/src/lib
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 131
131
132
132
const __repl_exports = ${ $bundle .client ? .code };
133
133
{
134
- const { mount , App } = __repl_exports;
135
- const [, destroy ] = mount (App, { target: document .body });
136
- window .__unmount_previous = destroy ;
134
+ const { mount , unmount , App } = __repl_exports;
135
+ const component = mount (App, { target: document .body });
136
+ window .__unmount_previous = () => unmount (component) ;
137
137
}
138
138
// # sourceURL=playground:output
139
139
` );
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ async function bundle({ uid, files }) {
485
485
lookup . set ( './__entry.js' , {
486
486
name : '__entry' ,
487
487
source : `
488
- export { mount } from 'svelte';
488
+ export { mount, unmount } from 'svelte';
489
489
export {default as App} from './App.svelte';
490
490
` ,
491
491
type : 'js' ,
You can’t perform that action at this time.
0 commit comments