Merge branch 'main' into tidy-up-accessors

pull/10520/head
Rich Harris 3 years ago
commit 47d2f550ef

@ -131,9 +131,9 @@
const __repl_exports = ${$bundle.client?.code};
{
const { mount, App } = __repl_exports;
const [, destroy] = mount(App, { target: document.body });
window.__unmount_previous = destroy;
const { mount, unmount, App } = __repl_exports;
const component = mount(App, { target: document.body });
window.__unmount_previous = () => unmount(component);
}
//# sourceURL=playground:output
`);

@ -485,7 +485,7 @@ async function bundle({ uid, files }) {
lookup.set('./__entry.js', {
name: '__entry',
source: `
export { mount } from 'svelte';
export { mount, unmount } from 'svelte';
export {default as App} from './App.svelte';
`,
type: 'js',

Loading…
Cancel
Save