Add support for custom route file extensions.

This commit is contained in:
pngwn
2019-04-25 00:23:34 +01:00
parent ce50c2ff98
commit e7b1aa373a
24 changed files with 346 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
import * as sapper from '@sapper/app';
window.start = () => sapper.start({
target: document.querySelector('#sapper')
});
window.prefetchRoutes = () => sapper.prefetchRoutes();
window.prefetch = href => sapper.prefetch(href);
window.goto = href => sapper.goto(href);