File tree Expand file tree Collapse file tree 6 files changed +1034
-276
lines changed
Expand file tree Collapse file tree 6 files changed +1034
-276
lines changed Original file line number Diff line number Diff line change 1414 },
1515 "devDependencies" : {
1616 "@playwright/test" : " ^1.28.1" ,
17- "@sveltejs/adapter-auto" : " ^2.0.0" ,
18- "@sveltejs/kit" : " *" ,
17+ "@sveltejs/adapter-auto" : " ^3.0.0" ,
18+ "@sveltejs/kit" : " ^2.0.0" ,
19+ "@sveltejs/vite-plugin-svelte" : " ^3.0.0" ,
1920 "@typescript-eslint/eslint-plugin" : " ^6.13.1" ,
2021 "@typescript-eslint/parser" : " ^6.17.0" ,
2122 "eslint" : " ^8.53.0" ,
2829 "svelte-markdoc-preprocess" : " *" ,
2930 "tslib" : " ^2.4.1" ,
3031 "typescript" : " ^5.0.0" ,
31- "vite" : " ^4.5.1 "
32+ "vite" : " ^5.0.0 "
3233 },
3334 "type" : " module" ,
3435 "dependencies" : {
Original file line number Diff line number Diff line change 11import { redirect } from '@sveltejs/kit' ;
22
33export function load ( ) {
4- throw redirect ( 307 , '/playground/tags' ) ;
4+ redirect ( 307 , '/playground/tags' ) ;
55}
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ export async function load({ params }) {
99 frontmatter : post . frontmatter ,
1010 } ;
1111 } catch ( e ) {
12- throw error ( 404 , `Could not find ${ params . slug } ` ) ;
12+ error ( 404 , `Could not find ${ params . slug } ` ) ;
1313 }
1414}
Original file line number Diff line number Diff line change 11import adapter from '@sveltejs/adapter-auto' ;
2- import { vitePreprocess } from '@sveltejs/kit/ vite' ;
2+ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte ' ;
33import { dirname , join } from 'path' ;
44import { fileURLToPath } from 'url' ;
55import { markdoc } from 'svelte-markdoc-preprocess' ;
66
7+ /**
8+ * @param {string } file
9+ * @returns {string }
10+ */
711function absoulute ( file ) {
812 return join ( dirname ( fileURLToPath ( import . meta. url ) ) , file ) ;
913}
You can’t perform that action at this time.
0 commit comments