mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
11 lines
310 B
JavaScript
11 lines
310 B
JavaScript
import { init, prefetchRoutes } from '../../../runtime.js';
|
|
import { Store } from 'svelte/store.js';
|
|
import { routes } from './manifest/client.js';
|
|
|
|
window.init = () => {
|
|
return init(document.querySelector('#sapper'), routes, {
|
|
store: data => new Store(data)
|
|
});
|
|
};
|
|
|
|
window.prefetchRoutes = prefetchRoutes; |