mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-17 04:14:57 +00:00
experimental new structure
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { init } from 'sapper/runtime.js';
|
||||
import { routes } from './manifest/client.js';
|
||||
import App from './App.html';
|
||||
|
||||
// `routes` is an array of route objects injected by Sapper
|
||||
init(document.querySelector('#sapper'), routes);
|
||||
|
||||
if (module.hot) module.hot.accept();
|
||||
init({
|
||||
target: document.querySelector('#sapper'),
|
||||
routes,
|
||||
App
|
||||
});
|
||||
Reference in New Issue
Block a user