mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
11 lines
345 B
JavaScript
11 lines
345 B
JavaScript
import { Store } from 'svelte/store.js';
|
|
import * as sapper from '@sapper/client';
|
|
|
|
window.start = () => sapper.start({
|
|
target: document.querySelector('#sapper'),
|
|
store: data => new Store(data)
|
|
});
|
|
|
|
window.prefetchRoutes = () => sapper.prefetchRoutes();
|
|
window.prefetch = href => sapper.prefetch(href);
|
|
window.goto = href => sapper.goto(href); |