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