mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-15 12:24:47 +00:00
rename .html files to .svelte
This commit is contained in:
13
test/apps/preloading/src/routes/slow-preload.svelte
Normal file
13
test/apps/preloading/src/routes/slow-preload.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script context="module">
|
||||
export function preload() {
|
||||
return new Promise(fulfil => {
|
||||
if (typeof window !== 'undefined') {
|
||||
window.fulfil = fulfil;
|
||||
} else {
|
||||
fulfil({});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<h1>This page should never render</h1>
|
||||
Reference in New Issue
Block a user